In microsoft.public.dotnet.languages.jscript message
<D368E441-6B63-47CB-A383-828F1E0D7E5C@microsoft.com>, Mon, 28 Jan 2008
01:52:00, =?Utf-8?B?15DXkdeZ16LXkyDXmNeV15nXmNeV?= <?@?.?.invalid>
posted:
>function disp_confirm()
>{
[quoted text clipped - 9 lines]
> }
>}
I cannot answer your question; but
function disp_confirm()
{
return app.confirm("Press a button");
}
should do the same.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

Signature
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE6 IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.