You can put it in the "head" or "body" section of the page, it doesn't really matter. But there are some things you'll want to remember:
- Put scripts with functions at the "head" section of the page or at the footer of your page. Then the script won't interfere with your content.
- Remember that when the "write()" method is placed inside of a function, it overwrites the entire content of the page.
Just a tip. If you're new to JS, it's probably useful.
No comments:
Post a Comment
Please keep your comments appropriate.