How can I set a traget to top for a link within an iframe?
<p>in my code for index.html I use jQuery and have a link with id #button3. </p>

<p>I have used  in index.html</p>

<pre><code> $('#button3 a').attr({
                            target: '_top'
                        });
</code></pre>

<p>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?</p>

<p>I have this code </p>

<pre><code> //handle click OK button
                $("#button3").click(function(){
                    if (validate()) {
                        submitQuery();
                    }
                });

                        //set the target attribut to return to the parent

                       $('#button3 a').attr('target', '_parent');
</code></pre>

<p>and 2 functions validate and submitQuery don't call the a link at any time. </p>
