Page 1 of 1

Iframe on top

Posted: Tue Jun 26, 2007 4:37 am
by shivam0101
Hello,

I have 4 links. When i click on it a window opens in iframe. (which i have downloaded from http://www.codingforums.com/showthread.php?t=77610).

The window is appearing bellow the existing div element. How can i make it to appear on top of all elements.


Thanks

Posted: Tue Jun 26, 2007 4:53 am
by Gente
Actually I don't like iframes but if you use it you can try to do following.
Place it in some some <div> and set large z-index value for this container.

[Solved] Iframe on top

Posted: Tue Jun 26, 2007 5:30 am
by shivam0101
Thanks. Is there any disadvantage of using iframe? any other alternative to iframe?

Posted: Tue Jun 26, 2007 6:23 am
by Gente
About alternatives - I haven't seen any.
About disadvantages - some problems with validation, but no really serious if absolutely valid xHTML is unnecessary.

cons of Iframe

Posted: Fri Jun 29, 2007 9:32 pm
by miramardesign
the cons of iframes are that they are not easily index-able to the search engines mostly, and hard to bookmark. But if you must use them in an app do so sparingly.

I prefer to use document.getElementById('mydivsid').innerHTML = 'html im putting into div'; and then in body put

<div id='mydivsid'> </div> and then call an onload function.