|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
I don't think that you can control the actual minimise buttons with javascript? I could be wrong tho
|
|
#3
|
|||
|
|||
|
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...... |
|
#4
|
|||
|
|||
|
...no, really, it's interesting.....!!
![]() |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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).
|
|
#7
|
|||
|
|||
|
I would only use a windowless window (hehe) if i was going to show a flash animation or something like that.
|
|
#8
|
|||
|
|||
|
Yeah, I'm not recommending it, but it's the closest thing to an answer to the actual question presented.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > One More Javascript Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|