Hi Everyone,
Long story short: im trying to save javascript code to a variable
[CODE]testVar = “<SCRIPT>alert(‘test’);</SCRIPT>”;
and pass it to another webpage who executes it with
[CODE]document.write(testVar);
Now this works great (it comes up with the alert ‘test’) BUT because the document.write was executed supposively AFTER the onload event of <BODY>, it REPLACES the original webpage with the new code I just sent it (which causes all kinds of bad things!).
Anyone got an idea how I can get a webpage to execute javascript commands I send it WITHOUT replacing the original webpage with the code i send it??
Cheers,
Dave.