The close function do the right thing:
window.close();
Now two examples that shows how use the close function.
<!--On a link--> <a href="#" onclick="window.close();return false;">
<!--On a button--> <input type="button" name="Bottone" value="Chiudi" Onclick="window.close();">
Example:
Click this link to open a popup window
Click this link to close the popup
No comments:
Post a Comment