1、
<input type="button" onClick="window.opener = '';window.close();" value="IE6 " >
2、 iframe
if (top.location != self.location)
{
top.location.href="http://www.34do.net";
}
3、
document.all("a")==null( )
4、
window.open ('default.asp', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
5、
window.showModalDialog('default.asp',window,'help: No; resizable: No; status: No;scrollbars:No;center: Yes;dialogWidth:width;dialogHeight:height;')
6、
window.parent.location.reload();
7、
window.parent.dialogArguments.document.execCommand('Refresh');
8、 js js
document.write('<script src="/b_trade/public/new/public.js"><\/script>');
9、
<td style="Writing-mode:tb-rl;"> </td>
10、iframe
window.parent.document.getElementById("iframe_dg")
iframe , :window.parent.document.getElementById("iframe_dg").height=200
11、 IFrame
function autoSetIframeSize()
{
var obj=self.parent.parent.document.all[self.name];
if(obj!=null)
{
self.parent.parent.document.all[self.name].style.pixelHeight=self.document.body.scrollHeight+5;
}
}
iframe name
<iframe id="iframe1" name="iframe1" align="middle" frameborder="0" width="100%" height="250" scrolling="no" src="a.asp"></iframe>
a.asp <body> :
<body onload="autoSetIframeSize()">
12、 (ie ,firefox )
.bg3
{
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#842B00, EndColorStr=#FFFFFF);
}
13、
:delayID=setTimeout(vCode, iMilliSeconds), , :clearTimeout(delayID)
14、
<span onmouseover="var obj=document.body.createTextRange();obj.moveToElementText(this);obj.select();obj.execCommand('Copy')" onclick="var obj=document.body.createTextRange();obj.moveToElementText(this);obj.select();obj.execCommand('Copy')" > </span>
15、
VB Rnd 0-1。 (min,max) , : = (max - min) * Rnd() + min,min max , min<max。
16、
<input onKeyUp="this.value=this.value.replace(/[^\d]/g,'')">
:http://www.jb51.net/article/409.htm