Jump to content

document.onload


lse123
 Share

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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...