on submit write function like this
function back()
{
document.formname.method=post
document.formanme.action="pagename"
document.formname.submit()
}
write javascript function like
function emp()
{
if(document.formname.fieldvalue=="")
alert ("enter the value")
}
call this function on onsubmit of form
<form name=form1 method=post action=somepage.asp Onsubmit="emp()">
this will solve ur problem
go to child window and write
window.opener.document.formname.fieldname.value=document.formname.fieldname.value
'--description
this will pass the contents of parent to child window.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.