如何自定义JavaScript提示? [英] How to customize the JavaScript prompt?

查看:78
本文介绍了如何自定义JavaScript提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用JavaScript提示输入将包含在标签之间的文本,例如

I am trying to use the JavaScript prompt for entering text that will be enclosed between tags e.g

[url] http://www.yahoo.com [/ url]

[url]http://www.yahoo.com[/url]

问题是提示始终显示在浏览器的左上角。

The problem is that the prompt always appear in the top left corner of the browser.

如何我是否定位它只显示文本区域周围的提示?

How do I position such that it only display the prompt around the text area where the text will be entered?

还有如何自定义JavaScript提示以使其看起来更多用户友好?

And also how do I customize the JavaScript prompt so that it look more user friendly?

推荐答案

您无法自定义(如果您在prompt()中引用)。您需要创建一个弹出窗口并自定义其内部。

You can't customize that (if you are refering at prompt()). You need to create a pop up window and customize its insides.

这篇关于如何自定义JavaScript提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆