[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Javascript generating Javascript?



You all probably know this already, but did you know it's possible to generate
Javascript-code using Javascript (and execute it).
Javascript is a pain in the neck, but this opens up possibilities!

Check this:

<HTML>
<HEAD>
<TITLE>Javascript generating Javascript</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- by Thomas van der Heijden, bART Internet Services, Thom@bART.nl

document.write("Starting script<BR>");
document.write("<SCRIPT LANGUAGE='JavaScript'>");
document.write("document.write('generate code!<BR>');");
document.write("</SCRIPT>");

// -->
</SCRIPT>
</HEAD>
</HTML>

Any feedback, Always welcome.
        Thomas (Thom@bART.nl)


----------------------------------------------------------------------
Creators, Shapers, Singers and Makers
    - The Techno-Mages - Babylon 5
----------------------------------------------------------------------

--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/