Redirection

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

CurlyMo
New php-forum User
New php-forum User
Posts: 3
Joined: Wed Feb 05, 2003 2:07 am

Redirection

Postby CurlyMo » Wed Feb 05, 2003 2:13 am

I have a site containing 3 frames: 1 Navigation, 1 Main, 1 Nav2

When i open a link like "Guestbook" it opens a link to nav2 containing "Write Guestbook | Read Guestbook".
But when i go back to "Home" the begin site re-apairs in main but the nav2 still had the "Write Guestbook | Read Guestbook".

Know i know there is a scripts <META http-equiv="refresh" content="5;URL=temp.html"> but is it possible that i enter a target in here so that when i open "Home" it redirects a other link to nav2 so that it's clean again.

Or is there an other way i can do this with java or something?

User avatar
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Postby pootergeist » Wed Feb 05, 2003 4:25 am

in home.htm(l)

<script type="text/javascript">
/*<[CDATA[*/
top.document.frames['nav2'].src = 'default_clean_page.htm';
/*]]>*/
</script>

CurlyMo
New php-forum User
New php-forum User
Posts: 3
Joined: Wed Feb 05, 2003 2:07 am

Postby CurlyMo » Wed Feb 05, 2003 5:10 am

what do you mean with [CDATA[ ?

Oromian
New php-forum User
New php-forum User
Posts: 38
Joined: Fri Apr 04, 2003 2:44 pm
Location: Canada
Contact:

Postby Oromian » Fri Apr 04, 2003 3:17 pm

Tip: use two frames. =)

It's a comlicated javascript that will make the browser goto two seperate pages in two seperate frames. But i lost the snipplet, took me like days to find.


http://javagoodies.com

I bet they have it.


Return to “HTML Basics”

Who is online

Users browsing this forum: No registered users and 1 guest

cron