Solved

Links and frames

Posted on 2000-03-08
5
226 Views
Last Modified: 2012-05-04
I have a page wich is split in two col. frames 20% and 80% and what i want is when they click a link in the 20% frame it will change or update the 80% frame.
0
Comment
Question by:scooter1
  • 2
  • 2
5 Comments
 

Accepted Solution

by:
yolish earned 50 total points
ID: 2597466
You need to reference the updated frame with target="frame name"... This will do whatever you want to that frame
0
 

Author Comment

by:scooter1
ID: 2597516
yeah i figured that out, do i need to use java script to make sure it loads correctly?

for example something like:

if(top.location==self.location){
top.location.href="frameset name.html"
}

and what is ment by "frameset name.html"?

0
 

Expert Comment

by:yolish
ID: 2597533
why use javascript?
0
 

Author Comment

by:scooter1
ID: 2597585
will all browsers accept 'target'
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2597589
scooter1,
the code you pasted above will make sure that the user is viewing the page inside the frame (as opposed to by itself).  "framesetname.html" is presumably the page that contains your <FRAMESET> and <FRAME> tags.  However, I don't see the relationship between this and your question.

You can accomplish your goal with javascript, or as yolish pointed out, with a target attribute.  Here is both ways:

js:
<A href='#' onClick='top.nameOfThe80pctFrame.location="newurl.htm";return(false);'>Click Me!</a>

<A href="newurl.htm" target="nameOfThe80pctFrame">Click Me</a>
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now