Welcome visitor
* Login
* Register
It is currently May 24th, 2019, 5:07 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  a "yes or not" alert message
PostPosted: July 29th, 2009, 11:18 pm 

Posts: 31
do you know how to make an alert message window that gives you a yes or not options, and if you click yes then you go ahead else you go back?

i dont know if this is possible at all, thanks for your time.


Top
 Profile  
 
  Re: a "yes or not" alert message
PostPosted: July 30th, 2009, 12:14 am 
User avatar

Posts: 63
use a confirm window
var ans=confirm('go or not');
if (ans==true){self.location.href='http://www.scriptingok.com';}
else{history.go(-1);}


Top
 Profile  
 
  Re: a "yes or not" alert message
PostPosted: July 30th, 2009, 12:18 am 

Posts: 31
Interesting, didn't know they exist, i will search more about them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » JavaScript


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 post attachments in this forum

Search for:
Jump to:  
cron