关闭窗口--->javascript:window.close()
返回前页--->javascript:history.go(-1)powered by powr.cn
文章字体--->javascript:doZoom(12) javascript:doZoom(14)
状态文字--->window.defaultStatus = "stry V1.2"
<base onmouseover="window.status='stry v1.1';return true">
设为首页 :
<a href=#onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.qzun.com');">
设为首页
</a>
加入收藏夹:
<A href="javascript:window.external.addFavorite('http://www.qzun.com','http://www.powr.cn)">
加入收藏夹
</A>
框架页面:
<iframe name=abc width=1 scrolling="NO" border=0 frameborder=0 height=1 src=http://www.powr.cn></iframe>
开启新窗口:
<SCRIPT language=javascript>function opencolortext()
{window.open('http://www.powr.cn')}setTimeout("opencolortext()")
</SCRIPT>
子窗口打开,关闭父窗口:
<script>
window.open('http://www.25175.com','','width=790,height=590');
window.opener=null;
window.close();
</script>
网页对话框:
<script>
window.onload=function(){
var features='status:0;dialogWidth:470px;dialogHeight:470px;dialogTop:100px;dialogLeft:100px;resizable:0;scroll:0;center:1';
showModelessDialog("http://www.powr.cn);
}
function show(laysn)
{
var obj;
obj=laysn.style;
obj.visibility='visible';
}
function hidden(laysn)
{
var obj;
obj=laysn.style;
obj.visibility='hidden';
}
</script>
正常打开打开一个弹出窗口:
1:<a href=# onclick=window.open('http://www.powr.cn/','target','param')>a</a>
2:<script language="JavaScript">
function WinOpen() {
mesg=open("cnrose","DisplayWindow","toolbar=no,,menubar=no,location=no,scrollbars=no");
mesg.document.write("<HEAD><TITLE>cnbruce</TITLE> |