By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

<script>

P: n/a
GTi
I want to crate a script that is run when the page load and when the page
close.
This can be done in the <body> section with onload and onunload
(not sure about the correct syntax right now)

But my question is:
Is it possible to crate a <script> that have a parameter like <script
when=onLoad .... >
Without adding the function in the <body> ?

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
GTi wrote:
Is it possible to crate a <script> that have a parameter like <script
when=onLoad .... >
Without adding the function in the <body> ?

window.onload = function() {
doStuff();
doMoreStuff();
}

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.