if this.frame = frame name if statement question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

if this.frame = frame name if statement question

Post 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);}
Post Reply