Message Box

H

Help Me

I have been trying to find the JScript to pull up a message box i have found.

var theResponse = window.alert("Welcome?","Enter your name here.");

But it keeps telling me tha t window is not reconized. Can you please help.

Thanks
 
A

Andrew Watt [MVP - InfoPath]

I have been trying to find the JScript to pull up a message box i have found.

var theResponse = window.alert("Welcome?","Enter your name here.");

But it keeps telling me tha t window is not reconized. Can you please help.

Thanks

Your code suggests that you are trying to use a JScript alert() for
the purpose of a prompt().

If you simply want to display a message use
XDocument.UI.Alert("This is a message.");

Andrew Watt
MVP - InfoPath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top