Running javascript functions from inside the body tags
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bradley_Allen
Posted On:   Friday, May 19, 2006 06:32 PM

Hey guys. I'm not terribly experienced with Javascript, and I have a quick question regarding something I'm working on. I have to edit this webpage from inside a document editor that already has the templates laid out for me. The templates already have and tags in them, and thus it does not allow me to add extra tags. I need a javascript function to run when the page loads, but I cant use the simple tag to do it, and I have no idea how to do something like that from inside the main body tags. Is there a way to make my script run whenever the page loads, even though I cant use the or tag to do it? Thanks for your help.

Re: Running javascript functions from inside the body tags

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, May 22, 2006 08:24 PM

If you put a "script" element anywhere in your page, the code in it will execute when the browser processes it, e.g. when the page loads.



Typically people just declare functions in their "script" elements, but you can run/do things too.
About | Sitemap | Contact