i wrote my entire webpage using the document.write command, but now i need to create a functino inside the body tags, is this possible, and if so how on earth is it done, thank you
@David_HarrisonNov 17.2003 — #May I suggest that you don't write your entire page in JavaScript, if you do that then people with JavaScript disabled or people using non-visual browsers cannot "view" your page.
@David_HarrisonNov 17.2003 — #It's to hide the script for browsers with JavaScript disabled. I would have thought that you would have known that one Charles.
@fredmvNov 17.2003 — #[i]Originally posted by Charles [/i]
[B][font=georgia]What's up with the HTML comments?[/font] [/B][/QUOTE]I believe it's used since, in browsers that don't support JavaScript, they actually print out all of the code in-between the [font=courier]<script>[/font] tags, by commenting them out prevents this. A lot of people also use this same technique for internal CSS.
Now, SGML has a lot of rules the browsers ignore and one of them is the permissibility of nested comments. And the browsers that do not understand the SCRIPT element are the ones that you can expect to have trouble with nested comments. To such a browser the above looks like...