View Full Version : textbox to text onClick

07-08-2005, 02:29 AM
I have a text box. I need the user to be able to click a button, and have the contents of that text box, (user entered) to become standard text, with out submitting a form.

Is this possible?

07-08-2005, 05:52 AM
What do you mean by standard text?

Harry Armadillo
07-08-2005, 06:54 AM
Like Glenn, I'm not sure exactly what you want. But something about your post amused me, so I interpretted it as this:
function BeholdTheText(){
var i=document.getElementById('userEntered');
var t=document.createTextNode(i.value);
var o=document.getElementById('standardText');
<input type='text' value='to become standard text' id='userEntered' style='width:200px'><input type='button' value='Eeek!' onclick='BeholdTheText()'><br>
<div id='standardText'></div>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum