How can I set a traget to top for a link within an iframe?

Posted by digitup on Stack Overflow See other posts from Stack Overflow or by digitup
Published on 2010-04-21T12:56:44Z Indexed on 2010/04/21 13:03 UTC
Read the original article Hit count: 204

Filed under:

in my code for index.html I use jQuery and have a link with id #button3.

I have used in index.html

 $('#button3 a').attr({
                            target: '_top'
                        });

When I call the index.html from an iframe as a src, the page opens in _self. I have tried with _blank and still when clicking on the a link it doesn't open on a new page. Any tips?

© Stack Overflow or respective owner

Related posts about jQuery