samples/script/script2.html

(完整代码) 899B

<SCRIPT>
	// close the window
	function testv(event)
	{	
		// insteed of this, you can also use getWindowNumber_(), but you need to load the winxtra.js
		var winNr=parent.WinLIKE.searchwindow('scriptWindow2'); // get our own window number
		parent.WinLIKE.windows[winNr].close(); // close myself
	}
</SCRIPT>


<BODY>

	<FONT FACE="Verdana,Arial,Helvetica" SIZE=2>

		<br>
		You can use the function win.<B>close()</b> to close a window.
		win is the object of the desired window.
		<br>
		Use parent. or f.i. top. to reach WinLIKE, because this script is
		inside of the content and does not know anything about WinLIKE.

		<b>
			<br><BR>
			var winNr=parent.WinLIKE.searchwindow('scriptWindow2');<br>
			parent.WinLIKE.windows[winNr].close()<br>
		</b>
		<br><br>
		

		<input type=button value="Close this window (function testv)" onClick="testv(event)">

</BODY>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。