Posted By

sekihin on 01/24/11


Tagged

javascript msgbox


Versions (?)

call MsgBox from javascript


 / Published in: JavaScript
 

URL: http://www.kanaya440.com/contents/script/vbs/function/others/msgbox.html

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>JavaScriptからVBScriptの命令を実行する</title>
  5. <meta name="Generator" content="EditPlus">
  6. <meta name="Author" content="">
  7. <meta name="Keywords" content="">
  8. <meta name="Description" content="">
  9. </head>
  10. <body>
  11. <html>
  12. <script type="text/vbscript">
  13. Function ShowMSG(msg)
  14. msg = Replace(msg, "[newline]", vbCrLf)
  15. MyVar = MsgBox (msg, 64, "確認")
  16. End Function
  17. </script>
  18. <script language="JavaScript"><!--
  19. function vb()
  20. {
  21. hincd = "HIN001";
  22. hinnma = "品名001";
  23. msg = "商品をカートに加えました[newline]"
  24. + "[newline]商品コード:" + hincd
  25. + "[newline]品名:" + hinnma;
  26. execScript("ShowMSG('" + msg + "')",'VBScript');
  27. }
  28. // --></script>
  29. </head>
  30. <body>
  31. <a href="javascript:vb()">Exec VB -- MsgBox</a><br>
  32. </body>
  33. </html>

Report this snippet  

You need to login to post a comment.