Accessing child page function through JavaScript
-
Hi frinds, I am working on a project where i want to access the function of child web page i know if u want to access the function of parent webpage u can access it through window.opener or document.parent But i want to access the function of child form is there any code to access the child form or i can make the object of child form and then access the function. thanks (Hemant U. Mane)
-
Hi frinds, I am working on a project where i want to access the function of child web page i know if u want to access the function of parent webpage u can access it through window.opener or document.parent But i want to access the function of child form is there any code to access the child form or i can make the object of child form and then access the function. thanks (Hemant U. Mane)
when you open a new window using window.open(), you end up naming the window in the second argument. window.open("bob.html", "bobWin", "width=500, height=500") for example creates a new window called bobWin. if you use that instead of "window", you should be able to point to anything there.