A close window function is useful when you use a pop-up window on your page, as it allows the visitor to easily close the window. You can do it several ways: To use a button, paste the following where you want the button to appear:
For a text link, paste the following where you want the link to appear:
To make the window close after a given number of seconds, add the event handler to the <body> tag. FYI, 20000 equals 20 seconds.