Forum Moderators: open
Somewhere where you have your Javascript insert
function clswin() {
close();}
Then you can call the clswin function using something like
<a onclick="clswin();" href="#"><IMG border="0" src="images/close_1.jpg"></a>
making sure that your image is referenced correctly or using appropriate text.
<button onclick="self.close();">Close Me</button>
Or: (Looks like a link)
<a href="#" onclick="self.close();">Close Me</a>
Or: (Looks like plain text)
<a onclick="self.close();">Close Me</a>
Or for that matter, if you put the "onclick=" in your <body> tag, clicking anywhere in the small window will close it.
<body onclick="self.close();">
Or: (Looks like a link)<a href="#" onclick="self.close();">Close Me</a>
What should be done so that only the small window closes and not my home page?