formatting text using buttons

B

Bart Schelkens

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
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top