Solved

jump to a bookmark on a frame from another window?

Posted on 2001-06-26
5
209 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript 2 38
dynamic created check uncheck boxes 6 42
Asp response.write to clients 6 34
Use Mid in Html 6 22
This article discusses how to create an extensible mechanism for linked drop downs.
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 style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

726 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