Solved

jump to a bookmark on a frame from another window?

Posted on 2001-06-26
5
210 Views
Last Modified: 2010-04-09
Hi
How do I click a link on a page, and it will open up a new window of a website with 2 frames in it and jump to a particular bookmark on 1 of the frames?

0
Comment
Question by:xtine
[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
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 6230088
I'm guessing here but can't you set the default URL of one of the frames to somepage.html#somePageLocation ?
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6230389
dorward is right. Example:

<frameset rows="*,*">
 <frame src="mypage1.htm#mark">
 <frame src="mypage2.htm#mark2">
</frameset>

and in the mypage1 you place somewhere:
<a name="mark"></a>

regards,
CJ
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6230401
and to open the window:
var w = window.open("framesetpage.htm");

regards,
CJ
0
 

Author Comment

by:xtine
ID: 6230432
This bookmark is only for people who open this websiteA from another websiteB. For those who goes directly to this websiteA, they will be at the top of the frame.
0
 
LVL 17

Accepted Solution

by:
dorward earned 20 total points
ID: 6230628
Then create two different framesetpages, one with the #bookmarks and on without. Then set the index.html file be the one with bookmarks and another file (e.g. myotherwebsite.html) to be the one with the bookmarks and link to different files.

If you have the facility available you could INSTEAD generate a different page (with or without the #bookmarks) on the fly using PHP, ASP, Perl or another server side language based on the value of the refering page (which most (if not all) browsers send).
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

688 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