Stop page load if opener is present
This commit is contained in:
parent
01ce86ce18
commit
aef3ecc3f2
1 changed files with 2 additions and 3 deletions
|
@ -17,9 +17,8 @@
|
|||
<script>
|
||||
// If we are inside iframe escape from it
|
||||
if (window.self !== window.top) window.open(window.location.toString(), "_top");
|
||||
if (window.self !== window.top) window.stop();
|
||||
if (window.self !== window.top && document.execCommand) document.execCommand("Stop", false)
|
||||
|
||||
if (window.self !== window.top || window.opener) window.stop();
|
||||
if ((window.self !== window.top || window.opener) && document.execCommand) document.execCommand("Stop", false)
|
||||
</script>
|
||||
|
||||
<div class="progressbar">
|
||||
|
|
Loading…
Reference in a new issue