Prompt dialog in WSH using JScript?

后端 未结 2 1374
暖寄归人
暖寄归人 2021-02-19 14:21

How to open a prompt dialog box in WSH usig JScript??

The only pop-up dialog I\'ve found in the doc is the WshShell.Popup() method. But I need a way to request the user

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 14:34

    I think the WScript object does not provide such a method however you can show an input box from vbscript running on WSH. So here is one possible solution which lets you call that VB function from within JS! Please note the file extension for the following code fragment ".wsf".

    
    
       
    
       
    
    

提交回复
热议问题