javascript window parent
| parent | NN 2 IE 3 DOM n/a |
|
|
Read-only |
|
Returns a reference to the parent window object whose document defined the frameset in which the current frame is specified. Use parent in building a reference from one child frame to variables or methods in the parent document or to variables, methods, and objects in another child frame. For example, if a script in one child frame must reference the content of a text input form element in the other child frame (named "content"), the reference would be: parent.content.document.forms[0].entryField.value |
|
|
For more deeply nested frames, you can access the parent of a parent with syntax such as: parent.parent.frameName. |
|
| Example | |
parent.frames[1].document.forms[0].companyName.value = "Gakaa"; |
|
| Value | |
|
window object reference. |
|
| Default | |
|
Current window object reference. |
|
2212,Nickname,Homepage or email,Comments here,Add comment
