Javascript Equivalent Function For Vbscript Msgbox()
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 a
Solution 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.
Post a Comment for "Javascript Equivalent Function For Vbscript Msgbox()"