Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Close a Frameset From a button in a Frame?

Status
Not open for further replies.

JuanjoZun

Programmer
Jul 20, 2002
82
MX
Hello

I have a Frameset.asp page that has 4 Frames inside, rigth, bottom, bottonrigth, main...

I put a button in bottomrigth and when the client clicks it, he would close full frameset.asp... Do U understand?
What can I do?

Thanks

Juanjo

Follow the dark side, so you can reach the light.
 
this typically works in NS6+, IE5.5+:

window.opener = self;
window.close();


as a button:
<input type=&quot;button&quot; value=&quot;Close&quot; onclick=&quot;window.opener = self; window.close();&quot; />


=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
No, I have IE 6... and cannot do that...
It don't do anything


Juanjo


Follow the dark side, so you can reach the light.
 
oops...since you're in frames:

parent.window.opener = self;
parent.window.close();




=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Good!!

It works good for me... Thanx


Juanjo

Follow the dark side, so you can reach the light.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top