Click to See Complete Forum and Search --> : Yes No Dialog Box


osclpc
03-18-2003, 04:13 AM
Hi all,

I need your help. What is the javascript for Display Box which have Yes and No button. I just know the javascript for Ok and Cancel Display Box -->confirm(message)

Thanks you

khalidali63
03-18-2003, 06:30 AM
Thats it.
result = confirm("your question here")

resutl = true if selected yes
and false if cancel is selected.

Cheers

Khalid

osclpc
03-18-2003, 10:55 PM
Hi,

Thanks for you reply. But what i mean is there will have 'Yes' and 'No' button in the display box to let user select.

from your code, confirm('your question here!'), the display box will show 'OK' and 'Cancel' button, right?

Is javascript support display box for Yes and No button?

Thanks.