Forum Moderators: mack

Message Too Old, No Replies

Javascript: Open HTML page in a Layer

HTML page in a layer

         

shaymax

7:02 pm on Jan 21, 2003 (gmt 0)



I have tried to look up javascript code to make a targeted
HTML page to open in my current page layer.
But none of the codes online seem to be working properly.
Sometimes the background of the new page becomes transparent to the layer bg color.
please help, or provide a script or URL i can refer to.

BlobFisk

11:11 am on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, shaymax! Check out Marcia's excellent WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com].

AFAIK, you cannot open another html page in a layer. A layer is an object within the current html page. To open a new html page within an existing html page you could use an iFrame.

You would then use the target="myiFrame" to make the page open in the iFrame. One thing to remember is that the target attribute is deprecated in XHTML.

HTH