We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Help me with coding Please
Topic Started: Feb 5 2007, 12:07 AM (158 Views)
fobbie-ZNR
Member
[ *  *  * ]
I want a button or a link, which when clicked on it, a new window will open, and the old window will close.

Please i need this script. Help Me.
Offline Profile Quote Post Goto Top
 
Astheria
 
[ *  *  *  *  *  *  *  * ]
Have you tried Google?
Offline Profile Quote Post Goto Top
 
fobbie-ZNR
Member
[ *  *  * ]
yea....MANY MANY TIMes...
Offline Profile Quote Post Goto Top
 
Aaron II
Member Avatar
Flying The Flag!
[ *  *  *  *  *  *  * ]
Code:
 
<A HREF="http://www.ifsz.net" target="_blank">
InvisionFree Skin Zone</A>


It's the same as a normal link, except with target="_blank" :)
Offline Profile Quote Post Goto Top
 
fobbie-ZNR
Member
[ *  *  * ]
will the old window will close?

I dont think so..
:(
Offline Profile Quote Post Goto Top
 
Aaron II
Member Avatar
Flying The Flag!
[ *  *  *  *  *  *  * ]
Oops, sorry, I didn't see that bit. :sigh:

You could try this, not sure if it will work.

Add to the head :

Code:
 
<script type="text/javascript">
function openNewWindow() {
 popupWin = window.open('http://www.ifsz.net',
 'open_window',
 'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=0, top=0')
}

</script>


Add to the body where you want the link to display :

Code:
 
<a href="javascript:openNewWindow(); javascript:window.close();">InvisonFree Skin Zone</a>
Offline Profile Quote Post Goto Top
 
fobbie-ZNR
Member
[ *  *  * ]
Nope..It wont close the old one..
Thanks anyway..

Couldsomeone help me please
Offline Profile Quote Post Goto Top
 
Astheria
 
[ *  *  *  *  *  *  *  * ]
/sigh.

You're not going to be able to close the old browser window.

Web based coding is VERY specifically designed to not allow such things.
Offline Profile Quote Post Goto Top
 
fobbie-ZNR
Member
[ *  *  * ]
I saw that somewhere/...

:(O)
Offline Profile Quote Post Goto Top
 
Astheria
 
[ *  *  *  *  *  *  *  * ]
Do you have a link?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply