homepage Welcome to WebmasterWorld Guest from 54.196.201.253
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<script onload don't work for me in IE
Xuefer




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

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

any idea?

 

kaled




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

Try <body onload=alert()>

Kaled.

Xuefer




msg:561896
 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>
<script>this_is_the_script_onload_event()</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