MyBB Community Forums
Close the shoutbox when click on a link - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: Close the shoutbox when click on a link (/thread-7818.html)



Close the shoutbox when click on a link - Cloud Strife - 2006-03-27

How can i close the shoutbox window when i click on a link, i have tried with the javascript code

<a href="javascript:window.close();">Close This Window</a> 

but it doesnt seems to work

http://theworld.6x.to


RE: Close the shoutbox when click on a link - Michael S. - 2006-03-27

If the shoutbox opens a new browser window try the following code (you have to remove the blank space between java and script!):
<a href="javascript:self.close();">Close Window</a>