***Parent Form Coding Parent.html
(html)
(body)
(input type='text' id='txtName')
(input type='button' id='btnOk' value='Ok'
onClick='window.open("Child.html","Child")')
(/body)
(/html)
***Child Form Coding Child.html
(html)
(head)
(script language='javascript')
function Show()
{
var test = window.opener.document.getElementById("txtName");
alert(test.value);
}
(/script)
(/head)
(body onLoad='Show()')
(/body)
(/html)
Note : Please replace () with <> for every html tags
Wednesday, October 15, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
Useful Information
Useful Information
Post a Comment