Creating a Close Button

How to Create a

Close Window Button
By Alfred


WEBPLUS gives you the ability to create pop-up windows in your web sites. However, there isn’t a standard option that allows the window to be closed other than the normal “X” in the top-right of the pop-up window. Alfred suggests creating a “Close Window” button or link to make life simpler for your web site visitors. This is how he suggests you do it.

 

Within the page that displays in the Pop-Up window, Create an image (usually a button) or a piece of text on the page and hyperlink it to 'an Internet page' with the 'URL address' specified as

javascript:self.close();

If you want to hide the JavaScript from the browser's status bar, use

“onclick="javascript:self.close(); instead.

This works for ANY page that mat be set to display in a new window (pop-up or full screen)

Serif forum link -
Close Window Button


And, Bruce added:

Thanks Alfred-I've been looking for this too.
It works, but you have to make sure the hyperlink target is set to "
same window".

If it's set to "new window" (like I did), when it closes, there's nothing there! (because it's opened a new window!!)