473,395 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

prompt() into textbox

How do you get a javascript prompt() box to put whatever you enter
into the prompt box into a text box. So for example you would be
typing in a textbox and you would want to add a word in bold, so you
click the a button, a prompt box appears and then you enter the word
you want in bold and then click ok and it adds it into the box where
the cursor is within the box with the tags <b> </b> ...

Many Thanks in advance,

Jacob
Jul 20 '05 #1
1 3730
> How do you get a javascript prompt() box to put whatever you enter
into the prompt box into a text box. So for example you would be
typing in a textbox and you would want to add a word in bold, so you
click the a button, a prompt box appears and then you enter the word
you want in bold and then click ok and it adds it into the box where
the cursor is within the box with the tags <b> </b> ...


Hmm... take a look at some examples... most of them just let the user press
a bold button and insert "<b></b>" into the textbox at the current cursor
position, then move the cursor to between the two tags.

It'd be much better than having to type in another pop-up dialog...
KC
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jacob | last post by:
How do you get a javascript prompt() box to put whatever you enter into the prompt box into a text box. So for example you would be typing in a textbox and you would want to add a word in bold, so...
2
by: Hans | last post by:
Hi! I have an asp application where I use a lot of javascript for validations etc and as it is today I use alert, confirm and prompt dialogs. Now we are adding support for unicode and I have...
1
by: Yurez | last post by:
Wanting to try a little project of making my own little shell/dos prompt sort of thing. However not sure best method to make the prompt over on the left and to keep it from being overwritting by the...
3
by: J.P. Cummins | last post by:
In my ASP.NET application, I wish to have a page for administrators to edit items in a list. Preferably, I would like to use the javascript prompt for the 'rename' function, and a javascript alert...
2
by: Luis | last post by:
Hello, I want to start an application writen in VB.net by a commmand prompt. This application will put on a textbox one string (string1) and in another textbox another string (string2). The...
5
by: GRB | last post by:
I'm using VB.Net 2003 to build a web page. I need to prompt the client for a name in order to save a list. I used the following code to btnSaveList.Attributes.Add("onclick", "var listname =...
4
by: Robert_5032 | last post by:
Trough code I put focus on a textbox. My problem is that the existing letters in that text box get selected (black background) so when users type in new letters, the existing text is replaced....
5
by: kimiraikkonen | last post by:
Hello, I have a textbox named "textbox1" and a button named "button1" How can i retrieve the console (cmd) data into textbox? For example when i run Shell("cmd.exe /k dir...
1
by: Rob Nicholson | last post by:
I've managed to write an ASP.NET v2 web page where the prompt to save the password doesn't appear :-( Not sure why it's not working. Autocomplete on the text boxes is working but when you enter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.