Created
February 12, 2016 09:08
-
-
Save kamituel/a15411d5536cfe04156a to your computer and use it in GitHub Desktop.
Window opener in Safari
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
window.openPopup = function() { | |
window.open('popup.html', 'popup', 'height=200,width=200'); | |
return false; | |
}; | |
</script> | |
</head> | |
<body> | |
<button onclick='openPopup()'>open!</button> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
window.doToParent = function() { | |
window.opener.location.href = "url"; | |
}; | |
</script> | |
</head> | |
<body> | |
<button onclick='doToParent()'>do to parent</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment