/    Sign up×
Community /Pin to ProfileBookmark

How can I emmulate a VB MsgBox with JS?

Hi…

I need to emmulate with JS a VB Message Box in order to ask the user to respond “Yes” or “No” and catch the result.

I tried doing it with a VBScript… but I know that VBScripts only work at IE.

Any ideas???

I tried with a prompt… but I don’t want to get any written values.

Thanx.

?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaSep 29.2004 — [font=trebuchet ms]You can't with JavaScript; use the confirm() method, instead ("okay" or "cancel" instead of "yes" or "no").[/font]
Copy linkTweet thisAlerts:
@JonaSep 29.2004 — [font=trebuchet ms]Oops, I should have looked before replying. This was double-posted: <http://www.webdeveloper.com/forum/showthread.php?s=&threadid=45453>.[/font]
Copy linkTweet thisAlerts:
@CybIROauthorSep 29.2004 — [i]Originally posted by Jona [/i]

[B][font=trebuchet ms]Oops, I should have looked before replying. This was double-posted: <http://www.webdeveloper.com/forum/showthread.php?s=&threadid=45453>.[/font] [/B][/QUOTE]


Thanx anyway, dude... Help is always apreciated.

CybIRO.
×

Success!

Help @CybIRO spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...