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

Re: Writing HTML to new window?



Stefan Koch wrote:
> 
> Hi,
> 
> I have a problem in writing HTML to a new window. I have got the following code:
> 
> <script language="LiveScript">
> <!--
> function windowOpener() {
>    msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
>    msg.document.write("Hi");
>    }
> // -->
> </script>
> 
> The browser won't write Hi. If I put it into <h1>tags it works fine. Or is this
> just another nasty bug? Displaying images is also a problem but I found out that
> you can display them when using the <center>tag. This is really strange.
> 
> Thanks for any help.
> 
> Bye, Stefan
> ---------------------------------------
> 100613.3663@compuserve.com
> http://ourworld.compuserve.com/homepages/vood    (Introduction to JavaScript)

I've had the same problem until I included <html><body> and 
</body></html>.
I guess NetScape is uncertain if its html or not if you don't tell it..

Regards

Robban
-- 
-----------------------------
http://www.wineasy.se/robban/
-----------------------------