Welcome to WebmasterWorld Guest from 18.207.134.98

Forum Moderators: open

Message Too Old, No Replies

Firefox trouble with textarea

     
5:19 pm on Aug 10, 2006 (gmt 0)

New User

10+ Year Member

joined:Oct 6, 2005
posts:33
votes: 0


I use a Javascript detect to determine browser type to set the size of the text area dynamically. My problem is that on Firefox, when a user types into the text area, it scrolls left to right but doesn't wrap to the next line when they hit the end of the visible text area.

Here's my code, any ideas would be greatly appreciated.

<tr>
<td width="97" valign="top"><nobr>&nbsp;&nbsp;&nbsp;&nbsp;How may we<br>&nbsp;&nbsp;&nbsp;&nbsp;help you?&nbsp;</nobr></td>
<td valign="top">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

if (navigator.appVersion.indexOf("MSIE")!=-1)

document.write('<textarea name="help_you" cols="60" rows="10"></textarea>')<!-- all other pc browsers -->
//-->
</script></td>
</tr>

7:58 pm on Aug 10, 2006 (gmt 0)

New User

10+ Year Member

joined:Oct 6, 2005
posts:33
votes: 0


Never mind, I found my answer here.

[webmasterworld.com...]

<edit reason - made link live>

[edited by: tedster at 8:00 pm (utc) on Aug. 10, 2006]