473,385 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

bookmarks within framed site

Hi. I was wondering if someone here could help.

I'm working with a simple framed web site, www.stargazing.net/mas/index.htm.
A left side called frame.htm, and the right side called home.htm. In head
section of home.htm I have the following JavaScript line:

if (document.location.hash != "#noframes" && typeof(top.locsrch) !=
"string") document.location = "index.htm"

.... If anyone calls an individual web page (example:
www.stargazing.net/mas/photos2.htm) all they have to do is click [return to
home], which runs home.htm. With this line of code, home.htm will then
return you to the framed site.

Just one problem. Suppose I want to get to a bookmark in home.htm, as in
http://www.stargazing.net/mas/home.htm#observatory home.htm ignores it and
launches me back to the framed site. Question. Is there a way to get
passed this barrier and to the bookmark?

Jul 23 '05 #1
1 1470
Dennis Allen wrote:
I'm working with a simple framed web site,
www.stargazing.net/mas/index.htm.
A left side called frame.htm, and the right side called home.htm. In head
section of home.htm I have the following JavaScript line:

if (document.location.hash != "#noframes" && typeof(top.locsrch) !=
"string") document.location = "index.htm"


Don't do that. What about users without client-side script support?
Besides, document.location has been deprecated long before, use
(window.)location instead. And `typeof' is an operator, not a method.
(No parantheses required.)
PointedEars
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: OnLiner | last post by:
I have a site with hundreds of pages. I often get visits from people who have linked to individual pages and not to the main index page. This means that they do not have the correct...
11
by: annie | last post by:
Hello all. I am writing an XSL stylesheet that automatically converts a page with frames to a noframes equivalent of this page, using tables. I can get the positioning of each frame write in the...
1
by: keithv | last post by:
Is there anyway to have cross-file bookmarks? I'd want to be able to quickly jump to a specific spot in a specific file. The toolbar bookmark command only seems to work within the current...
0
by: headware | last post by:
I have a question about how best to implement a redirection to a framed version of a web site. Basically I have a web site that was originally implemented without frames. Then it was decided that...
0
by: Mark Hayworth | last post by:
In VB6, you could set bookmarks that were in different files/module/classes/documents. When you clicked the flag tool to go to the next bookmark, it would take you there, regardless if that...
9
by: Tim | last post by:
Hi, has anyone experienced a spontaneous loss of a subform bookmark (i.e. resetting to the first record), when the computer is idle. I used to have a problem in NT4 when doing a couple of...
2
by: Mike Fellows | last post by:
Hi, I am trying to parse a word document to get a list of all the bookmarks that are setup within the document I need to be able to parse the bookmarks though without knowing the bookmark...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.