Anchors won't work in Netscape????

Posted on 1998-10-29
Last Modified: 2010-04-09
When accessing Anchor points on a second page, e.g.:

<A HREF="page2.html#gadzooks">Some Text here</A>

on one page and then on page2.html:

<A NAME="gadzooks"></A>

It won't work in Netscape! Takes me straight to the bottom of page2.html.

I've never seen this happen before. Works in IE, and all other pages I've created have always worked. I've gone over both pages several times and can't find the problem.

Tried remving CSS and JS info, tried everything!

It's driving me bonkers!

The page in question in at:

Please send help!

Question by:Bob_Langdon
  • 5
  • 4
LVL 12

Expert Comment

ID: 1839244
The problem is the code:

   <A NAME="gadzooks"></A>

which is non-standard HTML,
since there is "nothing" between the <A> and </A> tags.

Instead, use:

   <A NAME="gadzooks"> The </A> quick brown fox jumps over the lazy dog.

Author Comment

ID: 1839245
There are words between the tags. View the page at the URL provided.


A NAME="gadzooks">gadzooks</A>
LVL 12

Expert Comment

ID: 1839246
One small problem:

<B><STRONG><EM> Speed reading improvement.

You should remove the <B>.

Also, remove one of the 'ALIGN=' from:

ALIGN="center" SRC="images/logo.jpg"
ALT="compare to Evelyn Wood speed reading course"
WIDTH="400" HEIGHT="175" HSPACE="0" VSPACE="0">

Remove the 'ALIGN=' from:


since some browsers have a "quirk" which causes problems
when an "aligned" table is "taller" than the size of
the browser's window.  Besides, 'ALIGN="left"' is a "default",
so your page will look the same without it.

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.


Author Comment

ID: 1839247
Thanks, I'll try it and let you know what happens.
LVL 12

Accepted Solution

Otta earned 200 total points
ID: 1839248
Also, remove the 'CLASS="item"' tags from 'page2.html'.
That seemed to work for me, fetching the pages from my hard-drive.

LVL 12

Expert Comment

ID: 1839249
I also removed the 'class="item"' from the hyperlink
to 'comprehension' on the first(!) page.

Author Comment

ID: 1839250
Thanks Otta, that worked!

I guess this means if I want to access anchors to an external page, I have to make sure to either

1) keep tables short


2) never try to do a center or right align

I hate Navigator!

(I hate IE sometimes too ;)

Author Comment

ID: 1839251
The Class tags don't seem to be the problem, but you hit it on the head with "remove the "align="left"" tags from the table.  


(don't spend all those points in one place.:)
LVL 12

Expert Comment

ID: 1839252
> I have to make sure to either
> 1) keep tables short, or
> 2) never try to do a center or right align

Long tables without 'ALIGN="something"' are fine.
You can use:

  <CENTER><TABLE> ... lots of stuff ... </TABLE></CENTER>

and that works fine.

You can use:

  <TABLE><TR><TD>column one definition</TD>
   <TD> <TABLE> ... right-aligned stuff ... </TABLE>

to insert a table within the 2nd column of a table.


Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maps stopped work unsure why 7 34
Width of Page is Affecting Side Menu 6 25
Scroll 5 news at a time. 4 27
How to create a textarea which saves text in HTML 8 37
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question