renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
|
@ -0,0 +1,41 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<style>
|
||||
#protector {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99999999;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="protector">
|
||||
<a href="/" target="_blank">Go to the site</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
if (top.document.domain == document.domain) {
|
||||
protector.remove();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
This text is always visible.
|
||||
|
||||
But if the page is shown inside a document from another domain, the div over it prevents any actions.
|
||||
|
||||
<button onclick="alert(1)">Click doesn't work in that case</button>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue