Well inside a web page it's trivial, window is the global object so you can just write the following in a script block:
Code:
var bContinue = confirm("Do you wish to continue?"); //OR window.confirm(...
alert(bContinue); //OR window.alert(....
If you are manipulating IE via automationthen you need (from a stand alone javascript
:
Code:
var oIE = new ActiveXObject("InternetExplorer.Application");
oIE.navigate("about:blank");
while (oIE.readyState != 4)
{
WScript.sleep(200);
}
oIE.visible = true;
var oWin = oIE.document.parentWindow;
var bContinue = oWin.confirm("Do you wish to continue?");
WScript.echo("Continue: " + bContinue);
--
Joe