jake_604
08-21-2003, 08:43 AM
I have a piece of JavaScript that I use on all my pages, which redirects to the main frame:
<SCRIPT>
if (parent.frames.length==0)
window.location.replace("mainframe.html")
</SCRIPT>
Is it possible to add something to that, or have another piece of JavaScript that redirects to the main frame, but displays the page the user wanted to view.
Eg, I type in the address bar pictures.html which has the above script in. The browser then redirects to mainframe.html, but loads the pictures page in the frame.
If you get what I mean.
:confused:
<SCRIPT>
if (parent.frames.length==0)
window.location.replace("mainframe.html")
</SCRIPT>
Is it possible to add something to that, or have another piece of JavaScript that redirects to the main frame, but displays the page the user wanted to view.
Eg, I type in the address bar pictures.html which has the above script in. The browser then redirects to mainframe.html, but loads the pictures page in the frame.
If you get what I mean.
:confused: