well I have that problem, im using a lightbox srcipt and im opening an iframe in it so it's simply iframe. Is there a way to put a link inside of this iframe and open this link in normal window (outside of iframe) ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- how to get selected text from iframe with javascri
Try adding
target="_parent"
to the link tag, to open the link in the parent page that contains the IFrame, ortarget="_blank
, to open the link in a new browser window.Use
<a href="..." target="_top">My Link</a>
to put it on top of all other frames (break out)._blank will put in a new window or tab
_parent will put the link in the frame above the current (same as _top if only one level of frame)
Using the name (not id) of a frame will open the link in that frame.
http://www.w3schools.com/tags/att_a_target.asp
If you want to open the link in a new window/tab, use the
_blank
target:If you want to open the link so that it replaces the page where the iframe is, use the
_top
target: