Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Javascript
option to Onload event
option to Onload event
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
TJS
#1
option to Onload event
Jul 23 '05, 04:51 PM
Is there a way to have a script fire on page load other than using the
"Onload" in the body tag ?
Grant Wagner
#2
Jul 23 '05, 04:51 PM
Re: option to Onload event
"TJS" <nospam@here.co m> wrote in message
news:10vil4tr2t ba8fb@corp.supe rnews.com...[color=blue]
> Is there a way to have a script fire on page load other than using the
> "Onload" in the body tag ?[/color]
<body onload="/* ... code ... */">
or
<script type="text/javascript">
window.onload = function() {
// code
}
</script>
somewhere on the page.
--
Grant Wagner <gwagner@agrico reunited.com>
comp.lang.javas cript FAQ -
http://jibbering.com/faq
Comment
Post
Cancel
TJS
#3
Jul 23 '05, 04:51 PM
Re: option to Onload event
thanks!
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment