Home >Web Front-end >JS Tutorial >Discovered previously unknown functions_javascript skills
window.attachEvent('onload',LoadDiv);
function LoadDiv(){
if (document.getElementById("Bunny2"))
{
document.getElementById( "Bunny2").innerHTML='s';
document.getElementById( "Bunny2").innerHTML='3
}
}
document.onreadystatechange=fnStartInit;
function fnStartInit()
{
if (document.readyState=="complete")
{
try{}
catch(e ){}
}
}
This is the function that is executed when everything is loaded!
This is good