<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script langauge="javascript"> function return_values(local_id, local_name){ var parentIdField = opener.document.getElementById('localIdfield').value; var parentNameField = opener.document.getElementById('localNameField').value; opener.document.getElementById(parentIdField).value = document.getElementById(local_id).value; opener.document.getElementById(parentNameField).value =document.getElementById(local_name).value; self.close(); } </script> <title>(Type a title for your page here)</title> </head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <form name="frm" method=post action=''> <table border=0 cellpadding=0 cellspacing=0 width=250> <tr> <td align="center"> Id to be set<input type="text" name="local_id" id="local_id" size="12"> </td> </tr> <tr> <td align="center"> Name to be set<input type="text" name="local_name" id="local_name" size="12"> </td> </tr> </td></tr> </table> <input type=button value='Submit' onclick="return_values('local_id','local_name');"> </form> </html> |
No comments:
Post a Comment