General discussion
-
Topic
-
Setting field size for certain browsers
LockedNetscape Navigator displays textfields much longer than other browsers. So I need to determine which browser is being used, then set the size accordingly. I have the following javascript function:
function fieldLength()
{
if navigator.appName== “Netscape”
return 20;
else
return 40;
}Now I need to plug the value into an input tag somehow:
I’ve tried “javascript:fieldLength()” and document.write(fieldLength()) invarious syntaxes, but can’t find the right solution. How can I make this work?
All Comments
Viewing 0 reply threads