Passing a field name incorrectly.

wxdqz

New Member
Field name PSM_CSC is auto-generated by 3rd party application in a form. Want to rename PSM_CSC to CSC in a form by using the routine below and pass it to an another application. The code below works with an IE browser (even without the documet.forms statement), but does not work when opened with a Netscape browser. I want a routine that works with any browser. (I know nothing about Javascript)


<input TYPE="text" NAME="PSM_CSC" SIZE="3" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"">


<script LANGUAGE="JavaScript1.2">
<!--
document.all.PSM_CSC.name = "CSC";
document.all.PSM_CSC.id = "CSC";
document.forms[0].PSM_CSC.name = "CSC";
-->
 
Back
Top