Why do you need to (open the same page on which this button is), regardless of whether it is an iframe or if on the home page.
, , , , , .
, :
$("#mybuttonOpenWin").click(function(){
window.open(window.location.href);
});
, :
$("#mybuttonOpenWin").click(function(){
var mref = window.open(window.location.href);
(function = onReadyRef(xref){
if(xref.window.document.readyState=="complete"){
$(xref.window.document).find("body").html($("body").html());
}
else{
onReadyRef.call(this, xref);
}
})(mref);
});