(view source code of promptdemo.hta as plain text)
Function IsNullOrEmpty( myString ) IsNullOrEmpty = FalseIf IsNull( myString ) Then IsNullOrEmpty = True
If myString = "" Then IsNullOrEmpty = True
End Function
Sub Window_OnLoadwindow.resizeTo 0, 0
window.moveTo Int( ( window.screen.width - 498 ) / 2 ), Int( ( window.screen.height - 139 ) / 2 )
window.document.title = PromptDemo.ID & " " & PromptDemo.Version confirmed = FalseWhile Not confirmed
password = "" While IsNullOrEmpty( password )password = Trim( window.Prompt( "Enter your password:", "" ) )
Wend
confirmed = window.Confirm( "Please confirm that your password is """ & password & """" )
Wend
window.Alert "Confirmed password: """ & password & """"
window.CloseEnd Sub
page last modified: 2025-10-11; loaded in 0.0084 seconds