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.
I have this 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');
and 2 functions validate and submitQuery don’t call the a link at any time.
The correct set-attribute syntax is: