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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript is not supporting by NS...i need a help...

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
hi,

below code is not supporting by NetScape...but it works fine with IE...can u pls let me if u have any idea...

var underscore = window.event.srcElement.name.indexOf("_");
document.taxcodeForm.JURCODE.value = eval("document.taxcodeForm.jurcode_" + window.event.srcElement.name.substring(underscore+1) + ".value");


thanx in adv..
bobby
 
NS does not support srcElement. Call a function instead which sends the object with it.

<a href=&quot;javascript:void(0)&quot; onClick=&quot;checkName(this)&quot;..>


function checkName(oLink){
var underscore = oLink.name.indexOf(&quot;_&quot;);
...
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top