javascript that produces functioning javascript
<p>can you write javascript that produces/writes/etc. functioning javascript?</p>

<p>for example, have a link that has a function tied to it that when clicked produces a functioning javascipt snippet? The snippet could deal with a completely other elements.</p>

<p>For example</p>

<p>Link #1(has the javascript function that produces javascript)       Link #2(does absolutely nothing for now)</p>

<p>Click on link #1(produces javascript snipped that says "when link #2 is clicked document.write('hello')"</p>

<p>Clicking on link #2 now produces "hello" whereas it previously did nothing. Is that possible?</p>
