Possible Duplicate:
How can JavaScript make new page that contains more JavaScript?
I tried writing this: document.write('<script>document.write("test")</script>'); and it displays '); });//]]> I believe that it's because I wrote <script> </script> in it, why does it happen and what can I do (I purposely want it surrounded by <script>?
Thanks.
 
     
     
     
     
    