"Paste" the desired HTML into the window below and click the button.
After a few seconds, it will return the necessary JavaScript for your
document.
A quick test of the resulting script will permit you to determine
if the little applet functioned properly.
To use it, simply paste your HTML into the window below and click
the submit button. So long as you have not mixed single and double
quotes in your HTML, it'll do the job for you. For example, if you code
your HTML with double quotes (<BODY BGCOLOR="white">
or <A HREF="file.htm"> ), it will
return the JavaScript statement properly concatenated. Similarly, if
you code your HTML with single quotes (<BODY
BGCOLOR='white'> or <A HREF='file.htm'>
), it will function properly.
If you write JavaScript within JavaScript, this utility will also
be useful, but you will need to split any
</SCRIPT> calls like this:
document.write("</SCR"+"IPT>"
to avoid "confusing" the compiler. (Either that or add some exception
handling to the source code of this utility)
Important: Don't forget to immediately
copy and paste the returned JavaScript into your own document, since
it only exists in memory.
|