westman Posted May 19, 2012 Share Posted May 19, 2012 i have some smail code on how to oto start a function when a page loads.... otoload = "n_o_w";function otoload() { } will this work to start the function? Link to comment Share on other sites More sharing options...
niche Posted May 19, 2012 Share Posted May 19, 2012 (edited) Please read this then let us know what you need. http://www.w3schools...body_onload.asp Edited May 19, 2012 by niche Link to comment Share on other sites More sharing options...
Ingolme Posted May 19, 2012 Share Posted May 19, 2012 You're overwriting the variable with a function. By the way, you need to declare variables with "var" To make a function execute after the page has loaded, use the onload event. window.onload = otoload;function otoload() { // Do something} Link to comment Share on other sites More sharing options...
westman Posted May 19, 2012 Author Share Posted May 19, 2012 omg Foxy mad gave code ;)thank you very very much your code is very helpful again thank you for your time Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now