The JS interpreter sees the </script> inside your string and closes the
script. This may not be the Right Thing, but a simple workaround would
be to replace </script> with </'+'script inside the string.
Alex wrote:
> Something is wrong, the </script> tag in the string for some reason is
> the cause from what I can figure. When I remove it, it runs but not as
> it should since it is a broken HTML then.
>
> <html><head></head><body>
> <script language="javascript">
> function showme(){
> a=window.open("","Thank You","status=1,width=350,height=150");
> a.document.write('<html><body><img
> src="http://www.google.com/intl/en/images/logo.gif"><script
> language="javascript">window.location="http://www.aol.com"</script></body></html>');
>
> a.document.close();}
> showme();
> </script>
> </body></html>
|