By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,630 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,630 IT Pros & Developers. It's quick & easy.

Msgbox Abort retry button only.

rsrinivasan
100+
P: 221
Hi all,

I am using the below html page. It displays a messagebox when the page is loaded. But the messagebox has 3 button abort,retry, ignore. But i want only abort and ignore button. what should i do for this?

Expand|Select|Wrap|Line Numbers
  1. <HTML>
  2. <HEAD>
  3. <script >
  4. function window.confirmNew(str)
  5. {
  6.     execScript('n = msgbox("'+str+'","164")', "vbscript");
  7.     return(n == 6);
  8. }
  9. function call()
  10. {
  11.     var r = confirmNew("Do you want to enter Fixed Price ?");
  12. }
  13. </script>
  14. </HEAD>
  15.  
  16. <BODY onload="call();">
  17. </BODY>
  18. </HTML>
Thanks,
Jul 1 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
That's vbscript. Why not use the normal JavaScript confirm instead?
Jul 1 '08 #2

rsrinivasan
100+
P: 221
That's vbscript. Why not use the normal JavaScript confirm instead?
I tried your confirm method. But it displays only "Ok" and "Cancel" button.

But we need a messagebox that has "Abort" and "Retry" button only.
I get the msgbox example from this site:http://www.w3schools.com/VBScript/func_msgbox.asp

Please help....
Jul 1 '08 #3

acoder
Expert Mod 15k+
P: 16,027
The answer is on that page. Use vbRetryCancel (5) - OK, that's Retry and Cancel, not Abort and Retry, but Abort and Cancel mean more or less the same thing.
Jul 1 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.