How use MessageBox ?

chge yeh
  • chge yeh

    chge yeh - 2012-11-08

    I try use MessageBox , like this:

    <a href="#" onclick="external.MessageBox('test','test','MB_OK');">MessageBox</a>

    but i click the MessageBox , it show a message:

    This variable use JScript does not support Automation type


    <a href="#" onclick="external.StartMovingWindow();">StartMovingWindow</a>

    can work.

  • Chung

    Chung - 2012-11-08

    The final parameter is an integer and not a string. You have to put in the actual number as the constants are not defined in Javascript. MB_OK is 0x00000000 or just 0.

    Note that there's a typo in the doc. MB_OKCANCEL is 0x00000001.


Log in to post a comment.