1。问:在网页中JS打印按钮怎么做?
答:加入以下代码:
$#@60;script language="JavaScript"$#@62;
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION $#@62; 3) {
document.write("$#@60;form$#@62;$#@60;input type=button value="打印本页"
name="Print" onClick="printit()"$#@62;$#@60;/form$#@62;");
}
$#@60;/script$#@62;
2。在HTML中是否可包含其它文件,如何使用使用内侦IFRAME
$#@60;CENTER$#@62; $#@60;IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0
HEIGHT=62 WIDTH=470 SCROLLING=NO SRC=http://www.51hz.com/bbs/$#@62;$#@60;/IFRAME$#@62;
$#@60;/CENTER$#@62;
3。谁知道怎么用JS关掉亿唐的广告?
这是JavaScript参考手册的原话:
You can use open on an existing window, and if you pass the empty
string for the URL, you will get a reference to the existing window,
but not load anything into it. You can, for example, then look
for properties in the window.
所以我们只要用两句话就行了
newwindow=open("","etangWHpopup");
newwindow.close();

