|
|
Q1211 How do I bookmark a frame using Javascript?
irt.org | Knowledge Base | JavaScript | Bookmark | Q1211 [ previous next ] Q1211 How do I bookmark a frame using Javascript?Only in Internet Explorer 4+:
Hal Pawluk writes: I use a technique for bookmarking framed pages that you might be interested in. Essentially, I open the framed page in a popup window, then bookmark that, then close it. Here's how I describe it on my site: ------------------------------ Bookmarking Framed Pages: Just using the menu or ctl/cmd-D to bookmark a framed page won't work. All that's bookmarked is the outer frameset page, so when users come back to your site, they have to dig through it again to find the information they want. When I put my E-Notes into frames, I decided to do something about it. Start by putting this script into the head of your page (link to a Dreaweaver extension available below):
That will open the framed page in a small new window where it can be bookmarked. Now select an image or text with a null link in the body of the page and add the call to the frameBooker_hp function like this:
This will work but you see only a portion of the page being framed and the user may be confused because there are no instructions on what to do next. To solve that problem, insert the following code immediately after the tag in your page. It will push your content out of sight and tell the user what to do to bookmark the page:
If you're a Dreamweaver user, you can save yourself some effort by downloading my frameBooker extension from the Dreamweaver page (mouse over 'Other Stuff' and click on 'FrameBooker'). I've tested it with Netscape 3+ and Explorer 4+ on Windows and the Mac. Feedback on 'Q1211 How do I bookmark a frame using Javascript?' |
-- div -->
|