I though this would be simple enough but I can\'t find the answer. I need to know how I can access an iframe\'s name from within said iframe. I was trying something like thi
You were nearly right. Setting the name
attribute on a frame
or iframe
sets the name
property of the frame's global window
object to that string. (Not parent
, which refers to the window of the document that owns the frame.)
So unless some other script has deliberately changed the name, it's as simple as:
1.html:
2.html: