发现的以前不知道的函数_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 20:33:23
发现的以前不知道的函数_javascript技巧
发现的以前不知道的函数_javascript技巧:window.attachEvent('onload',LoadDiv); function LoadDiv(){ if (document.getElementById(Bunny2)) { document.getElementById(Bunny2).innerHTML='s'; document.getElementById(Bunny2).innerHTML='3alert(aaa);s'; } } document.onreadystatecha
导读发现的以前不知道的函数_javascript技巧:window.attachEvent('onload',LoadDiv); function LoadDiv(){ if (document.getElementById(Bunny2)) { document.getElementById(Bunny2).innerHTML='s'; document.getElementById(Bunny2).innerHTML='3alert(aaa);s'; } } document.onreadystatecha

window.attachEvent('onload',LoadDiv);
function LoadDiv(){
if (document.getElementById("Bunny2"))
{
document.getElementById("Bunny2").innerHTML=' script>s';
document.getElementById("Bunny2").innerHTML='3alert("aaa"); script>s';
}
}
document.onreadystatechange=fnStartInit;
function fnStartInit()
{
if (document.readyState=="complete")
{
try{}
catch(e){}
}
}
这个就是当也面已经全部载入后执行的函数 !
这个不错 代码如下:
function initIt(){document.forms[0].dlmc.focus();}
onload = initIt;
script>
发现的以前不知道的函数_javascript技巧
发现的以前不知道的函数_javascript技巧:window.attachEvent('onload',LoadDiv); function LoadDiv(){ if (document.getElementById(Bunny2)) { document.getElementById(Bunny2).innerHTML='s'; document.getElementById(Bunny2).innerHTML='3alert(aaa);s'; } } document.onreadystatecha