I am trying to create a web page with 2 frames.
My coding will create the web page but it won’t go to a URL when I click on the Go To button. Also, I already know it will give me an error when trying to go to a website in the history list that isn’t on the same domain as the coding. How can I get the Go To button to work? And the same domain issue?
This is the code for the parent frame:
<!– SiteNavigator.html –>
<HTML>
<HEAD>
<TITLE>Site Navigator</TITLE>
</HEAD>
<FRAMESET ROWS=”75%,25%”>
<FRAME SRC=”” NAME=”main”>
<FRAME SRC=”Controls.html” NAME=”controls”>
</FRAMESET>
</HTMl>
This is the code for the second frame:
<!– Controls.html –>
<HTML>
<HEAD>
<FORM NAME=”controls”>
URL Address:
<INPUT TYPE=”text” NAME=”newURL”>
<INPUT TYPE=”button” NAME=”goto” VALUE=” Go To “
onClick=”parent.main.location.href=document.controls.newURL.value();”>
<INPUT TYPE=”button” NAME=”next” VALUE=” Next URL “
onClick=”parent.main.history.forward();”>
<INPUT TYPE=”button” NAME=”previous” VALUE=” Previous URL “
onClick=”parent.main.history.back();”>
</FORM>
</BODY>
</HTML>