Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

<script onload don't work for me in IE



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

10+ Year Member

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)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Try <body onload=alert()>



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

10+ Year Member

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>

Featured Threads

Hot Threads This Week

Hot Threads This Month