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

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top