+ 2

Ques

how to open the link in parent frame?

4th Sep 2017, 1:25 AM
Priyank Sharma
Priyank Sharma - avatar
4 Réponses
+ 4
You can use target frame with its value parent. e. g. <a href="anylink" target="_parent">link</a>
4th Sep 2017, 1:59 AM
Lakshay
Lakshay - avatar
+ 4
@visph that code was posted by mistake.Sorry!
4th Sep 2017, 4:24 PM
Lakshay
Lakshay - avatar
+ 2
@Nanda: '_self' (and not 'self', be accurate ^^) will not open the link in the parent frame, but in the actual frame holding the link... @Lakshay: you're right that's the 'target' attribute to be used, but why posting a second answer with unrelated code? @@ @Priyank Sharma: For the 'target' attribute of <a> html link element, '_parent' value will target the parent frame (obviously ;P), and '_top' allow you to target the actual root parent document (ie: if you have a page embeding an <iframe> which itself contains another <iframe> with the link, the grandparent will be targeted)...
4th Sep 2017, 5:43 AM
visph
visph - avatar
- 1
hi, use _parent value to open a link in parent frame. sry guys I wrongly typed now I corrected. thanks
4th Sep 2017, 1:52 AM
Nanda Balakrishnan