The alert() method is used to display a simple dialog box with a message and an OK button. The message can be a string or a variable containing a string. Here's an ...
More often than not you want to create a child window and want to capture its events. This example simply captures its close event. var childWindow = window.open("new ...