?
Solved

Frame links to other URL

Posted on 2000-04-18
9
Medium Priority
?
245 Views
Last Modified: 2010-04-09
I have a 2 frame sets page. On the left hand side is my menu and the right hand side I want to display my friend's page, which is not the same domain and address. How do I do that??
0
Comment
Question by:ppmb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 1

Accepted Solution

by:
ManoloMA earned 150 total points
ID: 2729571
Try this:

Left frame:

<A HREF="http://yourfriendpage" TARGET="rightframename">Visit the page of my frame</A>



0
 
LVL 1

Expert Comment

by:ManoloMA
ID: 2729579
If you want to do it with a function:

<SCRIPT >
fucntion go(){
  top.frames['rightframename'].location = "http://yourfriendpage"
}
</SCRIPT>

<TABLE>
 <TR><TD onclick="go()">Visit the page of my friend</TD></TR>
</TABLE>

It is not necesary to put the 'onclick' in a td TAG.
0
 
LVL 3

Expert Comment

by:messentary
ID: 2730178
Keep in mind that you need to name your frames in the frames page html.

I.E..
<html>
<head>.....
<frameset framespacing="0" border="0" frameborder="0" cols="158,*">
    <frame name="menu" src="nav.htm" scrolling="auto" target="Main">
    <frame name="Main" src="main.htm" scrolling="auto">
  </frameset>

Also notice the added security of targetting the Main frame in this html as well.
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

Expert Comment

by:nfcdrummer
ID: 2733266
basically the source would be like this:

index.html:

<frameset rows="15%,*">
<frame src="index2.html" name="window1">
<frame src="menu.html" name="menu">


index2.html...

<whatever you want in here>


menu.html

<a href="http://friend.com" target="window1">my friend's page</a>
0
 
LVL 3

Expert Comment

by:messentary
ID: 2733905
ncr, did you generate that code you posted?  First of all, that is exactly what Manolo and I suggested, (are you hard up for points?), and second of all, your code puts his his friends page, or all his site pages, in a window that is only 15% of the screen, (and a row?).  

Think first, and look at previous comments.  This cheap shot of point grabbing is a joke.
0
 

Author Comment

by:ppmb
ID: 2734114
I will try all the code and take the best code.
0
 

Expert Comment

by:nfcdrummer
ID: 2736353
oops I did that size the wrong way around sorry!!
0
 

Expert Comment

by:nfcdrummer
ID: 2736355
oops I did that size the wrong way around sorry!!

and yes I am hard of points because I'm STUPID!!!

0
 

Author Comment

by:ppmb
ID: 2746882
TO nfcdrummer :
Your answer worked but I can't take your answer since the comment suggested by ManoloMA also worked. I have to give credit to ManoloMA since ManoloMA provided the comment earlier than you did. Sorry, nfcdrummer.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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…
Suggested Courses

777 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