Jump to content
Sign in to follow this  

Web Based Text Editor

Recommended Posts

I want to create a web form that will take text from the user and allow them to change font size, color, ect by clicking a button, like a message board, but this is for feedback. I used the following Code

<input type="button" value="bold" name="bold" OnClick="News.Content.value +='<B></B>'">

for making bold text. When I try to change the font size or color using the same method,

<input type="button" value="fontcolor" name="fontcolor" OnClick="News.Content.value +='<FONT SIZE="1"></FONT>'">

I get a runtime error, Untrminated string constant. Is there a way to deal with this?? Can I use javascript or some other method.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...