homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

<script onload don't work for me in IE

 5:48 am on Nov 19, 2005 (gmt 0)

version: IE 6 xpsp2
document: msdn said <script> element has onload event.
<script src="http://../...js" onload="alert()"></script>
(i have tried <script onload="alert()"> ... </script>)
expected: an alert box
result: nothing happened

any idea?



 11:44 am on Nov 19, 2005 (gmt 0)

Try <body onload=alert()>



 12:21 pm on Nov 21, 2005 (gmt 0)

yeah, thx, i know that one
just wonder why the script's one doesn't work
i though i can get the event fired as soon as the script is loaded, not the slow body onload
but okay, i found it's equ to
<script src=..></script>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved