Jump to content

document.onload


lse123

Recommended Posts

I applied below about cursor, to be busy till full onload but shows full busy everywhere and after onload, well what's the solution?

//cssbody {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 12px;	background-color: #FFFFFF;		cursor:progress;}//jsdocument.onload=load();window.onload=load();function load() {document.body.style.cursor='crosshair';}

Link to comment
Share on other sites

You shouldn't use the parenthesis when assigning an event handler. If you do then the function will be executed immediately and the return value will be assigned as the event handler.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...