lse123 Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
Ingolme Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
lse123 Posted July 10, 2011 Author Share Posted July 10, 2011 document.onload=load;window.onload=load; // like this you mean? Link to comment Share on other sites More sharing options...
thescientist Posted July 10, 2011 Share Posted July 10, 2011 yes Link to comment Share on other sites More sharing options...
Ingolme Posted July 10, 2011 Share Posted July 10, 2011 Just to let you know, the document object doesn't have an onload event. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.