简体   繁体   中英

It's possible show an input window requesting information to the user in the browser?

I want to do with Javascript or jQuery the same I do with JOptionPane.showInputDialog() in Java.

Show an input window to the user enter some information.

How can I do this?

您可以为此使用prompt(text, value)

If you're looking for something more stylish or involved than merely a prompt (which Quentin answered with), that's a very involved question that's likely too complex to answer here.

Try doing a google search for "jquery modal form". You'll find lots of tutorials.

Like this one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM