Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-23-2005, 01:48 PM
  #1
youngloopy
Aspirant (Level 2)
 
Join Date: Jul 2005
Posts: 16
iTrader: (0)
youngloopy is an unknown quantity at this point
Using A Button to Close a Browser

Is there a way to make a button onClick close the current browser? I need it because I have a contact page that opens in a new smaller browser and I want the 'thank you for contacting us' page to have a button that closes the new small browser
youngloopy is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-23-2005, 02:06 PM
  #2
_Aerospace_Eng_
The CSS Master (somewhat)
 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a galaxy far far away...
Posts: 11,154
iTrader: (0)
_Aerospace_Eng_ has disabled reputation
If the button will be on the 'thank you for contacting us' page then you can use
Code:
<input type="button" onclick="window.close()" value="Close Window">
Note this will only work if the new smaller window was opened using window.open.
__________________

76 invites left. PM me for a Gmail invite along with email addy.
Why we won't help you .::. Web Developer's Handbook .::. Why Tables for Layout is Stupid?
_Aerospace_Eng_ is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-23-2005, 02:41 PM
  #3
youngloopy
Aspirant (Level 2)
 
Join Date: Jul 2005
Posts: 16
iTrader: (0)
youngloopy is an unknown quantity at this point
This is how I have it opening

<a href="#contact.htm" onClick="MM_openBrWindow('contact.htm','','toolbar=yes,location=yes,status=yes,menubar=yes,width=700 ,height=600')"

I don't really know another way, if you have any suggestions That would be great, I don't know how to use window.open but I can if you have some code or something.

Thanks,
Josh
youngloopy is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 02:38 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.