javascript that ask yes or no

W

Wouter

Hi,

I need a script that askes yes or no in a page. I know only how i most make
it in a link... But i need it not in a link. Can somehelp whit this ?

Greets Wouter
 
F

frizzle

i think you want a 'confirm'-dialog box.

function AnswerMe()
{
if(confirm('really?'))
{
//do this if answer is ok.
}
else
{
// do this if person pressed 'cancel'
return false
}
};
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top