473,568 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.locat ion.hash != "#noframes" && typeof(top.locs rch) !=
"string") document.locati on = "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 1486
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.locat ion.hash != "#noframes" && typeof(top.locs rch) !=
"string") document.locati on = "index.htm"


Don't do that. What about users without client-side script support?
Besides, document.locati on has been deprecated long before, use
(window.)locati on 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
1929
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 menu/navigation system to view the rest of the site with. I know how to redirect them to the index page, but that means they then have to search the site for...
11
1978
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 table layout, and the only problem left is the dimensions of each cell. So my question is: Is there any way of automatically calculating the...
1
1829
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 document. Thanks, Keith
0
1102
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 it needed frame, so I made a page called index.aspx that contained the frameset that initially displayed the original home page, home.aspx, in one...
0
1214
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 bookmark was in the same file or not. Now, with VB.Net in VisualStudio.Net, it will only traverse bookmarks in the same file. It won't go to the next...
9
1875
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 specific things outside of access (launching internet explorer or adobe) that would cause a loss of bookmarks within access. Since our migration to XP...
2
1512
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 name Thanks in advance
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.