How To Close A Parent Window?
I have a application form when I submit the form it is redirecting to window which have options 'print' and close. Please click here
Solution 1:
Why are you using that way? Just use:
function CloseWindow() {
window.parent.close();
}
Or, you can use:
function CloseWindow() {
window.close();
}
Solution 2:
If you are using script in HTML wrap it with tag like:
Please click <a onclick="CloseWindow();" href="#">here</a> to close this window.
<script type="text/javascript">
function CloseWindow() {
window.parent.close();
}
</script>
Post a Comment for "How To Close A Parent Window?"