June 27, 201016 yr Hello, I have assignment to add frame scripting to the following HTML page. I am completely lost with framesets in JavaScript. My task is to create a function that will be called when each link is clicked. You will also add code to the existing <A> tags to invoke the function. When the function is called, pass the class name of the related link as an argument. The function will write that text to the parent window’s text box. The function will then close the child window. Add a button to the classList.htm file. Script this button to write the text no class chosen to the parent window’s text box. Then script the button to close the child window. The user can click this button if no link is selected. Can someone become friends with me and help me get started? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>CIW Class List</TITLE> <script LANGUAGE="JavaScript"> <!-- // Create a function that writes data to the parent window. // The function will then close the child window. // --> </SCRIPT> </HEAD> <BODY> <H3 ALIGN="center">CIW Web Languages</H3> <HR> <TABLE BORDER> <TR BGCOLOR="lightgrey"><TH>Web Development</TH><TH>Enterprise Development</TH></TR> <!-- USe the links to call the function passing the class name as an argument --> <TR><TD><A HREF="http://www.w3schools.com/js/default.asp";>JavaScript</A></TD> <TD><A HREF="http://www.javavideos.net">Java</A></TD></TR> <TR><TD><A HREF="http://www.tizag.com/perlT";>Perl</A></TD> <TD><A HREF="http://ooaduml.com/node/283">OOAD</A></TD></TR> <TR><TD><A HREF="http://www.tizag.com/phpT">PHP</A></TD> <TD><A HREF="http://www.jdbc-tutorial.com">JDBC</A></TD></TR> <TR><TD><A HREF="http://www.tizag.com/aspTutorial">ASP</A></TD> <TD><A HREF="http://www.conceptgo.com/gsejb/index.html">EJB</A></TD></TR> </TABLE> <P ALIGN="center"> <FORM> <!-- Create a button that when clicked, writes to the parent window, then closes the child window --> <INPUT TYPE="button" VALUE="close window" onClick=""top.frames[1].myFrame.location.href=’http://www.amu.apus.edu’; "> <input type="hidden" name="instructor" value=""> <input type="hidden" name="username" value=""> <input type="hidden" name="scramble" value=""> <input type="hidden" name="courseid" value=""> <input type="hidden" name="keepkey" value=""> <input type="hidden" name="filename" value="classList.htm"></form> </P> </BODY> </HTML> </BODY> </HTML>
Create an account or sign in to comment