PDA

View Full Version : Help with code please.


pwillner
5-30-02, 01:39 AM
I have just added a chat room to my site. When you hit the "chat" link it opens into a new window (which I want). The problem is once you log in it opens into another window, which is one too many windows for me. In the second window there is the following code for a "back" button. <p><small><I><a href="javascript:history.back();">Go Back</a></small></I></p> Can someone tell me how I change this into a close window button?

If anyone would like to take it a step further and look at the site http://www.coreattitude.com/ is there a way for me to make the second window (log in) close when the third window (chat room) opens) or convert into the third window.
Thanks
Pete

Raven
5-30-02, 02:57 AM
Hi Pete!

You can create a close window link using the following code:

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

Hope this helps!

pwillner
5-30-02, 03:05 AM
Thanks Raven, I will put it to good use.:)
Pete