Click to See Complete Forum and Search --> : frames, history, location


1christine
12-22-2003, 02:37 PM
I've got this code to run, but need to work around the security features in the browser:

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>

second frame:
<!-- Controls.html -->

<HTML>

<BODY>

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

1christine
12-22-2003, 02:59 PM
I think I've found a solution but don't know how to code it.

The reason I can't use the previous and next buttons is because the web pages and my javascript code aren't on the same domain. Is there a way to capture a copy of each web page into an array or something else, so that the code works?

Thanks for any help in advance. I've got a deadline coming up for this one.