window.confirm??help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   window.confirm??help
slickk
CZ Newbie
slickk has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 02, 2004
0.00 posts per day
Posts: 2
Points: 116
   
I am trying to use the window.confirm method to close the browser by clicking ok and refreshing by clicking cancell. Can anyone help???



Back to top Reply with quote
#2   re: window.confirm??help
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Post the code you've got so far please.



Back to top Reply with quote
#3   re: window.confirm??help
slickk
CZ Newbie
slickk has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 02, 2004
0.00 posts per day
Posts: 2
Points: 116
   
var buttonNotPressed=setTimeout("window.confirm('Do you want to Quit?')", 5000);
if(buttonNotPressed==true) {
window.close();
}
else {
document.guessForm.reset();

}



Back to top Reply with quote
#4   re: window.confirm??help
nomadesign
CZ Super Newbie
nomadesign has been a member for over 20 year's 20 Year Member
usa.gif
Status: Offline
Joined: Jun 24, 2004
0.01 posts per day
Posts: 71
Points: 2,907
   
slickk:
Not sure if this is what your looking for.
Make a button and add this code to it:

<form name="form1" method="post" action="">
<div align="center"> <span class="larger">
<input type="button" name="Button" value="Close" onClick="self.close();MM_goToURL('parent','addcontrolmod.htm');return document.MM_returnValue">
</span></div>
</form>

-damon



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum