/    Sign up×
Community /Pin to ProfileBookmark

pass content from window to frame

<html>
<head>
<script language=”javascript”>
var myWindow;
function christDoes(){
mydWindow=open(“myWindow.html”, “myWind”);
addButton();
deleteButton();
cancelButton()
}
function addButton() {
if(subject.value.length>0){
var i=subject.value.length;
var subjects=new Array(i);
for(var k=0; k<subjects; k++){
myWindow.second.document.write(“<b>” +subjects[k].toUpperCase() +”</b><input type=’text’ name=’subjects[k].toLowerCase()’ value=”>” +”<br>”);
}
}
}

function deleteButton(){
if(subject.value.length>0){
subject.value=””;
}
}

function cancelButton(){
if(subject.value.length>0 && url.value.length>0){
subject.value=””;
url.value=””;
}
}

</script>
</head>
<body><CENTER>
<big><b>SCHOOL LOGO HERE</b><INPUT TYPE=”FILE” NAME=”url” size=30><p>
<B>ENTER YOUR SUBJECT</B><INPUT TYPE=”TEXT” NAME=”subject” VALUE=””>
<INPUT TYPE=”BUTTON” NAME=”add” VALUE=”ADD” onClick=”addButton()”>
<INPUT TYPE=”BUTTON” NAME=”delete” VALUE=”DELETE” onClick=”deleteButton()”><br>
<INPUT TYPE=”BUTTON” NAME=”ok” VALUE=”OK” onClick=”christDoes()”>
<INPUT TYPE=”BUTTON” NAME=”RESET” VALUE=”CANCEL” onClick=”cancelButton()”>
<CENTER>
</body>
</html>
+++++++++++++++++++first window++++++++++++++++++++++++
<html>
<head>
<title>StarMoon Technologies</title>
</head>
<frameset rows=”50%, 50%”>
<frame name=”second” src=”secondWindow.html”>
<frame name=”edit” src=”done2.html”>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
+++++++++++++++++++++++second window+++++++++++++++++++
<html>
<head>
<script language=”javascript”>
</script>
</head>
<body><center>
<TABLE align=center>
<TR>
<TD><H4><B><I><U><FONT COLOR=MAROON>STUDENT DATA / INFORMATION </U><H4></TD>
<TR>
<TD>NAME <INPUT TYPE=”TEXT” NAME=”yourname” SIZE=17></TD>
<TD>SURNAME <INPUT TYPE=”TEXT” NAME=”surname”></TD>
<TR>
<TD>SEX: MALE<INPUT TYPE=”radio” NAME=”boy” VALUE=”” CHECKED></TD>

<TD>FEMALE<INPUT TYPE=”radio” NAME=”boy” VALUE=””></TD>
<TR>
<TD>AGE <INPUT TYPE=”TEXT” NAME=”age”></TD>
<TD>PHONE NUMBER <INPUT TYPE=”TEXT” NAME=”phone” SIZE=12></TD>
<TR>
<TD>CLASS <INPUT TYPE=”TEXT” NAME=”school” SIZE=17></TD>
<TD>E-MAIL <INPUT TYPE=”TEXT” NAME=”email”SIZE=23></TD>
<TR>
<TD>ADDRESS <INPUT TYPE=”TEXT” NAME=”address” SIZE=13></TD>
<TD>TEACHER <INPUT TYPE=”TEXT” NAME=”teacher”></TD><BR>

<CENTER>
<TABLE>
<TR>
<TD><H4><B><I><FONT COLOR=MAROON><U>SUBJECT AND SCORE </U><H4></TD>
</body>
</html>
++++++++++++++++++++third window+++++++++++++++++++++++++
please this is what i want to do . when i input in the textbox: ‘YOUR SUBECT HERE’ and click the addButton it adds the string and a textbox on the third window as many time as i input in it

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 5.3,
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,
)...