"ok" and "cancel " buttons

liunx

Guest
how can i put the "ok" and "cancel " buttons on an alert message? <br />
<br />
Please Help Me!!!<!--content-->prompt('text to be displayed','');<!--content-->Originally posted by Khalid Ali <br />
prompt('text to be displayed',''); <br />
<br />
There is also the confirm() method:<br />
<br />
<br />
<script type="text/javascript"><!--<br />
if(confirm("Here is my question")){<br />
&nbsp;alert("My question is OK!");<br />
} else {<br />
&nbsp;alert("You cancelled my question!");<br />
}<br />
//--></script><br />
<br />
[J]ona<!--content-->Jona is correct, there are 2 options for you to choose from..:D<!--content-->
 
Back
Top