Link to home
Start Free TrialLog in
Avatar of xtine
xtine

asked on

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?

Avatar of dorward
dorward

I'm guessing here but can't you set the default URL of one of the frames to somepage.html#somePageLocation ?
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
and to open the window:
var w = window.open("framesetpage.htm");

regards,
CJ
Avatar of xtine

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial