Passing values to window.open()
-
Hi, I am using window.open() to open a new popup window when I click a Button...It is working fine....... My requirement is I want to pass a textbox value in window.open() and access in the next page..... Thanking you Mcmilan.
mcmilan wrote:
My requirement is I want to pass a textbox value in window.open() and access in the next page.....
//You can retrive parent page text box value in child page //Suppose I have one text box in parent page with ID 'txtParentID' //and other textbox in child page with ID 'txtChildID //now you can get parent TextBox value into child textbox by using this script
function getValue()
{
document.getElementById('txtChildID').value=opener.document.getElementById('txtParentID').value;
}// call this script on body onload event in child page
please don't forget to vote on the post that helped you.
-
Hi, I am using window.open() to open a new popup window when I click a Button...It is working fine....... My requirement is I want to pass a textbox value in window.open() and access in the next page..... Thanking you Mcmilan.