HTML inside <textarea>

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

HTML inside <textarea>

Post by evilmonkey »

I want to put HTML inside an uneditable textarea. Can this be done? This isn't for a form, this is just for design purposes. I'm also looking for cross-browser compatibility, so if a solution works exclusively on IE, please let me know. If it can't be done, I'd love to hear some alternatives. The design department needs those textareas and we in the programming dept. need that HTML...

Thanks for the help. :D
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

since the textarea is uneditable and not for a form, is there a reason why you can't put the html on a div or an iframe?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

I'd stick it in a div, as andre_c suggested.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Actually, the design depatment chose to take care of it with cleverly placed iframes (one on each page that had the problem). Thanks for the suggestions. :)
Post Reply