The value for this object can be assigned like this
We will try to make it interactive so we will assign this to a value entered by the user. Then we will use one input box in child window and name it as c_name. So we can pass the value of the input box of child window to the parent window input box by this line.
how can i pass the value from child window if the parent window has the table instead of text box ....
I think you are saying passing value to a database table. Here after getting the data in the text box you have to submit the form with new data to store in a database table. You can even directly store then in a table by using JQuery or Ajax. Some more tutorials on this line is going to be added.
thanx man ... you made my day ;)
that`s a brilliant example ....
Good Ex. I have situation where in Parent Opens a chil window for Gmail Login. I get email id and then submit it to my application and redirect the parent to the new URL.
I am using window.opener.document.location.href for redirection, however limitaion is it supports GET and I want data in POST.
Is their a solution/suggestion for me to get around this issue.
You can <a href=../html_tutorial/submit-new.php>submit form to a new window</a>.
Parent File name is index.html and child file name is child3.html . i paste the same code but open the pop up window . after submit .nothing happen.what will do?