+++++++++++++++++++++++++++first window+++++++++++++++++++++++++
<html>
<head>
<script language=”javascript”>
var myWindow;
function christDoes(){
mydWindow=open(“second.html”, “yes”);
}
</script>
</head>
<body><form name=”myform” method=POST ACTION=”sake.html” ><CENTER>
<B>ENTER YOUR SUBJECT</B><INPUT TYPE=”TEXT” NAME=”subject”>
<input type=”button” name=”ok” value=”OK” onClick=”christDoes()”>
</form>
</body>
</html>
+++++++++++++++++++++++++++first window+++++++++++++++++++++++++
++++++++++++++++++++++++++++second window++++++++++++++++++++++
<html>
<head>
<script language=”javascript”>
function me(){
displayColor();
}
function displayColor() {
callWindow=window.open(“third.html”,”fine”);
}
var m=0;
var fSubject = self.opener.document.forms[0].subject.value;
if(fSubject.length>0){
if(isNaN(fSubject)){fSubject=””;}
else{opener.alert(“Please enter figure”);}
numSub=parseInt(fSubject);
if(numSub==2){var strSub=”ab”;}
self.document.write(“<center>” +”ENTER SUBJECT HERE” +”</center><br>”);
var mercy=”<HTML><BODY>”
mercy +=”<FORM ACTION=’save.html’ METHOD=’POST’>”
mercy +=”<CENTER>”
sub=new Array(strSub.length);
for(var i=0; i<sub.length; i++){
m++;
mercy +=m +”<input type=’text’ name=’sub[i].toLowerCase()’>” +”<BR>”;
opener.alert(“You have entered” +m +”subjects”);
}
}
mercy +=”</CENTER></FORM></BODY></HTML><BR></BR>”;
self.document.write(mercy +”<BR>”);
self.document.bgColor=”pink”;
self.document.write(“<center>” +”<input type=’button’ name=’submit’ value=’SUBMIT’>” +”<center>”);
}
</script>
</head>
<body onload=’me()’>
</body>
</html>
++++++++++++++++++++++++++++++second window++++++++++++++++++++
+++++++++++++++++++++++++++++++third window+++++++++++++++++++++
<html>
<head>
<script language=”javascript”>
function help(){
self.document.write(“this is me”)
self.document.write(“<center>” +”<input type=’button’ name=’submit’ value=’SUBMIT’>” +”<center>”);
}
</script>
</head>
<body onLoad=”help”>
</body>
</html>
+++++++++++++++++++++++++++++++third window+++++++++++++++++++++
Can somebody help me with the code to make this button work? In the first window when 2 is input and ‘OK’ button clicked, the second window opens with 2 textbox and ‘SUBMIT’ button. If ‘SUBMIT’ button is clicked i want it to open the third window. Please help me out.