Reputation: 1052
I am trying to have a link to an iframe load a frame on top of my page. Is there a javascript way to do this?
I have this in my code but I want that link to load within my page on top of a google map...
<div>
<iframe src="/static/flaggingCriteria.html" name="flaggingCriteria" allowTransparency="true" scrolling="no" frameborder="0" >
</iframe>
</div>
Thanks!
Upvotes: 0
Views: 365
Reputation: 181
When you say load a frame on top of your page, do you mean a modal window ?
If that is the case Fancy box will let you do that very easily it will let you load iframe into a modal window. http://fancybox.net/
Upvotes: 1
Reputation: 61
This should work:
<div style="z-index:1000;position:absolute;">
<iframe src="/static/flaggingCriteria.html" name="flaggingCriteria" allowTransparency="true" scrolling="no" frameborder="0" >
</iframe>
</div>
Upvotes: 0