Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 close a browser and open another one
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

quince
Junior Member

Canada
103 Posts

Posted - 13 February 2005 :  12:07:46  Show Profile
hello guys .. i am facing a problem ...

i need when i press a button i want the browser to close and open another browser with the page i want ... so could i find any help over here

thanks in advance guys
quince

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 February 2005 :  20:33:24  Show Profile
I suppose a simple hyperlink won't work for some reason?

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 February 2005 :  07:34:47  Show Profile
You'll need a bit of javascript to do that.

<a href="URI" onclick="window.open(this);window.close;return false">LINKAGE</a>

Where URI is the address of the new page you want to load.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

quince
Junior Member

Canada
103 Posts

Posted - 14 February 2005 :  12:30:25  Show Profile
thanks shaggy and Doug G for your response .... i will try it ...
Go to Top of Page

quince
Junior Member

Canada
103 Posts

Posted - 15 February 2005 :  03:50:27  Show Profile
this code it didn't work what i have done is remove window.close from the parent page and put it in the next page when it loads ... so what happen here is

parent:
<a href="URL" onclick="window.open(this);return false">LINKAGE</a>

next page:
<body onload="opener.window.close()">

and that will work ...

thank you guys for ur help ....
quince
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 February 2005 :  08:32:26  Show Profile
You're welcome, Quince


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07