Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input type = "button" : value attribute 1

Status
Not open for further replies.

JavaStripped

Programmer
Dec 18, 2002
84
CA
As you can tell from my handle, most of what I do is JavaScript, and that forum is where I spend most of my time on this site. However, I recently encountered a deficiency in my HTML knowledge:

Is there any way to force a button's displayed name (
Code:
value
) to display on multiple lines? If there is, I'm not finding it;
Code:
\n
doesn't seem to work, and I'm just assuming that
Code:
<br>
doesn't work, being inside a quoted literal and all...

Thanks,
JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
this one is going to sound strang but really not
do this
<input type=&quot;button&quot; value=&quot;check
them&quot;> _______________________________________________
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }

_______________________________________________
for the best results to your questions: FAQ333-2924
 
[bomb]Never mind... found it. I don't know why there isn't an HTML character entity for the line feed/CR character, but whatever... Thanks anyway. &quot;Seek, and ye shall find... even if it's not what you were looking for.&quot; JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
LOL... Thanks for the reply anyway. I just used the character code:
&semi; (had to search to find it, tho...). JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
Oops... it displayed the wrong entity name. Never mind. You know the one... number 10. JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
And actually, onpnt's solution is really very elegant and common-sense... explains why I didn't think of it... [hammer]
JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top