How to customize JavaScript hint?

I am trying to use a JavaScript prompt to enter text to be enclosed between tags, for example

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

The problem is that the prompt is always displayed in the upper left corner of the browser.

How to place such a position so that it displays only a hint around the text area where the text will be entered?

As well as how to customize the JavaScript hint so that it looks more user-friendly?

+1
source share
3 answers

You cannot configure this (if you refer to the invitation ()). You need to create a popup and configure its insides.

+2
source

You cannot place a JavaScript tooltip and you will find that it depends on different browsers.

Although you didn’t explicitly ask if I can either create your own invitation (as simple as making a div with input and positioning absolutely, and correctly set the CSS display property to β€œopen” it and close it, or (and this, what I would do) use something like jQueryUI or a similar alternative that will do what you want.

One last bonus: just insert the [url] [/ url] tags with a placeholder domain or an imbeteen message and automatically select it and select it so that when entering text it appears there, built-in.

+1
source

Here is a recognized way:

http://jqueryui.com/demos/dialog/

+1
source

All Articles