Welcome to WebmasterWorld Guest from 54.146.180.94

Forum Moderators: coopster & jatar k

Controlling URL in one frame from another frame

Can this be done?

   
12:00 am on Jul 17, 2004 (gmt 0)

10+ Year Member



I want to develop a frames page with two horizontal pages. Within the bottom frame I want to control websites that appear in the upper frame. That is, enter URLs via some input box in the lower frame and have the site appear in the upper frame. Also, as an added feature (as if this was not enough!) if the user clicks on a link in the upper frame this new url will appear in the lower input box (just as it would in the Address/URL box in a browser).

Not sure how this would work but if anyone can give direction I'd appreciate it. Also, prefer PHP solution but javascript could also work.

12:04 am on Jul 17, 2004 (gmt 0)

10+ Year Member



I believe there is a way, if you name your frame then you can make the target of the link in that frame.

So if you name the top frame "up" and in the lower frame you have the link say target="up"

so in ur index page you have the frames ready like this

<frame src="top.html" name="up">

then you just have your link:

<a href="newpage.html" target="up">Name of your link</a>

And there you ahve it ^.^

12:11 am on Jul 17, 2004 (gmt 0)

10+ Year Member



Thanks. I think I see that but what about coming back the other way. If a user clicks on a link inside the upper frame can that url end up in the lower input box?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month