473,387 Members | 1,464 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,387 software developers and data experts.

formatting text using buttons

Hi,

i know i'm not in the right place here but i'm still hoping one of you can
help me.

I have created this website using asp.
Now my boss wants me to add some buttons so the user can format some text of
his own.
Just bold, italic, underline.

I've been trying to find some javascript to do this but i can't seem to find
it.
Can anyone help me?

Thx
Nov 19 '05 #1
1 911
You need to set style properties from javascript. Alternatively you can
preset the styles and change the class property.

Style properies:
myElement.style.fontWeight='bold';
myElement.style.fontStyle='italic';
myElement.style.textDecoration='underline';

Eliyahu

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
Hi,

i know i'm not in the right place here but i'm still hoping one of you can
help me.

I have created this website using asp.
Now my boss wants me to add some buttons so the user can format some text of his own.
Just bold, italic, underline.

I've been trying to find some javascript to do this but i can't seem to find it.
Can anyone help me?

Thx

Nov 19 '05 #2

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

Similar topics

1
by: hannibal | last post by:
Hi when i click on View < Text Zoom (200%) in this web site: http://w3.uqo.ca/d_info/ using netscape, i connot see the hole text in the menu frame! my be the solution to use image text...
2
by: Colleyville Alan | last post by:
I am using Access and have embedded the ActiveX control Formula One that came with Office 2000. (ver 3.04). I have created and formatted a spreadsheet and now I want to copy the info with...
2
by: Lerp | last post by:
Hi all, I have several template columns in my datagrid, is there an attribute that sets the fore color for the text in these buttons...I would like them to be black instead of the default link...
2
by: Paul Mason | last post by:
Hi folks, I just need some advice about books/where to look about this subject. I've got a number of happily running .NET apps that are doing the business and have some good formatting, as...
4
by: | last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the user of the progress of the program, or ask confirmation of an action, or simply to act separators to various parts of the...
0
by: Tonio Tanzi | last post by:
I have some asp pages with a multipart form (for file uploading), some text inputs and some submit buttons duplicated on the top and bottom of pages. If I insert into a text box a text from...
14
by: Scott M. | last post by:
Ok, this is driving me nuts... I am using VS.NET 2003 and trying to take an item out of a row in a loosely-typed dataset and place it in a label as a currency. As it is now, I am getting my...
16
Gwyn Thomas
by: Gwyn Thomas | last post by:
Hi All, Firstly, I apologise if this question has appeared before but I can't find it anywhere. I have created a gridview with two command buttons. When I click the buttons I want either an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.