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

if (X = 'TEST') setting X = TEST ??

Status
Not open for further replies.

PSFMIS

MIS
Feb 3, 2006
28
US
Why would this set the unempyn field on the opener window to the value Y that I'm comparing it to?? Something must be wrong my my syntax...

Code:
if(opener.document.MainForm.unempyn.value = 'Y'){
}

Help,
Aaron
 
Don't do javascript but the same thing happens in PERL.
Try.....
Code:
if(opener.document.MainForm.unempyn.value [b]==[/b] 'Y'){
}
If smoke comes out of the back of your box - It wasn't me!

Keith
 
Well what do you know .. just needed one extra equal sign to make it all better.

Thanks!
Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top