Tell the similar functionality like parent
parent.document.getElementById(source).innerHTML
must equal to
other-function-name.document.getElementById(source).innerHTML
Thanks
Tell the similar functionality like parent
parent.document.getElementById(source).innerHTML
must equal to
other-function-name.document.getElementById(source).innerHTML
Thanks
parent is not a function. It is an object most probably a window object. And a child object inside that is referenced by using the code.
See
Returns a reference to the parent of the current window or subframe.
If a window does not have a parent, its parent property is a reference to itself.
When a window is loaded in an , , or , its parent is the window with the element embedding the window.
If you want to know if an object has a "document" property that is a document node, you can do:
(typeof obj.document == "object" && obj.document.nodeType == 9)
http://www.w3schools.com/jsref/obj_window.asp this is good link which can helpful.
one small discussion with my friend
that is there is another object there , it do the same functionality like parent ,
So i need clarification. is there any object can do same like parent..
Thanks