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:
functionCloseWindow() {
window.parent.close();
}
Or, you can use:
functionCloseWindow() {
window.close();
}
Solution 2:
If you are using script in HTML wrap it with tag like:
Please click <aonclick="CloseWindow();"href="#">here</a> to close this window.
<scripttype="text/javascript">functionCloseWindow() {
window.parent.close();
}
</script>
Post a Comment for "How To Close A Parent Window?"