Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i am doing one project. on that,if i click a textbox in current.html page then newpage.html page will open in new window.on that new window(newpage.html) one text box and button is there. after entering the text in the textbox if i click the ok button, the textbox value of the new window(newpage.html) should get back to the current.html page. how to do this?..can anyone plz help me..

thanks in advance
Posted

Call This function On click of OK button

function OkClick(){
var childtxt=document.getElementById("ctxt").value; //Child Window Control
window.opener.document.getElementById("ptxt").value=childtxt; //Parent Window Control
window.close();
}
 
Share this answer
 
Hi friends,
i have created one session object to store the result in new html page. then i get the object in current html page.It is working !!

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900