Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 18th, 2002, 02:41 PM
SABmore SABmore is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 17 SABmore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 34 sec
Reputation Power: 0
One More Javascript Question

I have a popup window, that if a user clicks to minimize it (top right hand corner), I want the window to close instead.

Using Javascript, how would I accomplish this?

Thanks in advance.

Reply With Quote
  #2  
Old October 18th, 2002, 07:37 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I don't think that you can control the actual minimise buttons with javascript? I could be wrong tho

Reply With Quote
  #3  
Old October 18th, 2002, 08:46 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
You're right ben, I dont think you can control the actual buttons..... you have to create a link or something...

You could use:

<a href="javascript:self.close()">Close Window</a>

it's nice to show the user exactly how to do stuff! Basically treat the user as a "web virgin" who has never used the site before... that's my motto!! -- sorry, but I did a course on web usability..... its pretty interesting to see what some people do......
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #4  
Old October 18th, 2002, 08:47 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
...no, really, it's interesting.....!!

Reply With Quote
  #5  
Old October 19th, 2002, 06:46 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Hehehe... I believe it... I've seen the way some people "surf" the net, and it's surprising!

I've seen some professors at school who have no clue what they're doing... And these are teachers in the various computer programs! It's sad!

So you're right when you say to treat them like "virgins"... LOL!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #6  
Old October 22nd, 2002, 08:31 AM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
If you really want the minimize button to close the window, you would create a "Chromless window" (search for it or look on http://www.dynamicdrive.com/ and place images of the windows GUI in HTML. Then, you can create a minimize button that closes the window. (but chromless windows only work in IE I think, and it's a lot of extra code just for this effect).

Reply With Quote
  #7  
Old October 22nd, 2002, 09:04 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I would only use a windowless window (hehe) if i was going to show a flash animation or something like that.

Reply With Quote
  #8  
Old October 22nd, 2002, 09:33 PM
dgibson dgibson is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Urbana, MD, USA
Posts: 66 dgibson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Yeah, I'm not recommending it, but it's the closest thing to an answer to the actual question presented.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > One More Javascript Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT