hello guys i am facing a problem in accessing form elements and returing them.. can u please help me.. ?
Here the problem goes:
<script language="javascript" type="text/javascript">
function pop() {
newwindow2=window.open('','name','height=500,width=500');
var tmp = newwindow2.document;
tmp.write('<html><head><title>popup</title>');
tmp.write('<body><form action ="hello.html" value="somthing" method="post">');
tmp.write('<b>Date</b>')
tmp.write('<input type="text" name="date"><br>');
tmp.write('<b>Event Title</b>')
tmp.write('<input type="text" name="title"><br>');
var title = document.getElementById('title')
tmp.write('<b>Event Desc</b>');
tmp.write('<input type="text" name="event1"><br>');
tmp.write('<b>start time</b>');
tmp.write('<input type="text" name="start"><br>');
tmp.write('<b> end time </b>');
tmp.write('<input type="text" name="end"><br>');
tmp.write('<input type="submit" name="ADD" onclick="javascript:self.close()"><br>');
tmp.write('<input type="reset" name="CLEAR">');
//name = oForm.elements["title"].value;
tmp.write('</form>')
tmp.write('</body></html>');
tmp.close();
}
</script>
Here i have created a pop up (html page) inside one html page which uses javascript inside it. On clicking submit in the popup i want the values of form elements (& also return those values to other html page ) so can u ppl help in this regard
Thank you