jump to a bookmark on a frame from another window?

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?

xtineAsked:
Who is Participating?
 
dorwardConnect With a Mentor Commented:
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
 
dorwardCommented:
I'm guessing here but can't you set the default URL of one of the frames to somepage.html#somePageLocation ?
0
 
CJ_SCommented:
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
 
CJ_SCommented:
and to open the window:
var w = window.open("framesetpage.htm");

regards,
CJ
0
 
xtineAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.