View Full Version : textarea

12-17-2007, 09:39 AM
How would you insert the default text in a textarea to include "</textarea>"

like this

in the random code</textarea>
more random code

I have seen it done but do not know how to do it..

12-17-2007, 09:45 AM
in the random code&lt;/textarea&gt;
more random code

&lt; prints a <
&gt; prints a >

It'll show as "</textarea>" inside the textarea without closing it.

12-17-2007, 09:47 AM
in the random code &lt; /textarea &gt;
more random code

I'm don't test this but I think it work, replace <, > with &lt; &gt;

PS: sorry for duplicate response with Majoracle, I can see your post only after I post mine... meantime I edit, :D
best regards

01-16-2008, 12:58 AM
oesxyl -- it works fine. i use it all the time. also you can use

&# 60; for < and &# 62; for >

remove the space between # and 6 the server wouldn't allow me to put them together.

here is a tool i use for making html/xhtml examples

another one for making document.write scripts

i got them from http://www.javascripts.com/ and http://www.about.com/javascripts

01-16-2008, 03:02 AM
You really shouldn't be using document.write. There are much better alternatives that are part of the DOM.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum