/    Sign up×
Community /Pin to ProfileBookmark

button open snext window

+++++++++++++++++++++++++++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.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ken2010 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...