Page 1 of 1

if this.frame = frame name if statement question

Posted: Mon Feb 25, 2008 2:16 pm
by JAB Creations
I am trying to figure out how to have JavaScript determine if the frame it is being executed in has a name of 'content'.

Here is what I have tried thus far...

Code: Select all

if (this.frame == parent.content) {alert(this frame is content frame);} else {alert(it is not content frame);}