Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > close window

close window
Thread Tools
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
May 3, 2003, 03:04 PM
 
what is the code for closing a window? I.E.-have the word "close" and when they click on it, the window closes...

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Professional Poster
Join Date: Dec 2001
Location: somewhere
Status: Offline
Reply With Quote
May 3, 2003, 04:37 PM
 
window.close (JavaScript - I assume that's what you were asking)
     
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
May 3, 2003, 04:52 PM
 
how and where would I put that? after the word "close?"

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Dedicated MacNNer
Join Date: Feb 2001
Location: Manhattan
Status: Offline
Reply With Quote
May 3, 2003, 05:02 PM
 
Originally posted by THE MAC GOD:
how and where would I put that? after the word "close?"
[PHP]<a href="javascript:window.close();">close</a>[/PHP]
     
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
May 3, 2003, 05:14 PM
 
ok... i test it in the browser... but it won't close the window... any ideas?

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Mac Enthusiast
Join Date: Jan 2003
Location: :noitacoL
Status: Offline
Reply With Quote
May 3, 2003, 05:15 PM
 
i wanted to show the code... but it formats the post...sorry

All as artificial as the Matrix itself, although only a human mind could invent something as insipid as Love.
     
Professional Poster
Join Date: Dec 2001
Location: somewhere
Status: Offline
Reply With Quote
May 3, 2003, 05:30 PM
 
In the example above, be sure to remove the space in 'javascript' - the example shows 'java script'.

&lt;a href="JavaScript: window.close();"&gt;Close&lt;/a&gt;
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2