I need to convert following function to javascript,
MsgBox("Are you a programmer?",0,"Please answer")
I think I can use confirm("Are you a programmer?")
but I want to know how to add button order there ?
asked Jan 29, 2013 at 14:14
1 Answer 1
Javascript does not have the custimizability that vbscript does with this function. And yes, it is confirm(). For example,
var choice=confirm("pick a button");
if(choice) alert("you picked ok");
else alert("you picked cancel")
You cannot control what the buttons say like in vbscript.
answered Jan 29, 2013 at 14:22
Comments
default
confirm
orprompt
won't do, you'll have to create your own. Using a combination of html/css/js.