Solved

Anchors won't work in Netscape????

Posted on 1998-10-29
9
188 Views
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: http://dss-sites.com/superead/



Please send help!

TIA
0
Comment
Question by:Bob_Langdon
  • 5
  • 4
9 Comments
 
LVL 12

Expert Comment

by:Otta
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.
0
 

Author Comment

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



e.g.:



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

Expert Comment

by:Otta
ID: 1839246
One small problem:

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

You should remove the <B>.

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

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

Remove the 'ALIGN=' from:

<TABLE
WIDTH="580" CELLSPACING="0" CELLPADDING="0" BORDER="0" ALIGN="left">

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.


0
 

Author Comment

by:Bob_Langdon
ID: 1839247
Thanks, I'll try it and let you know what happens.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Accepted Solution

by:
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.

0
 
LVL 12

Expert Comment

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

Author Comment

by:Bob_Langdon
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

or

2) never try to do a center or right align



I hate Navigator!



(I hate IE sometimes too ;)
0
 

Author Comment

by:Bob_Langdon
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.  



Thanx!



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

Expert Comment

by:Otta
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>
   </TD></TR>
  </TABLE>

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

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now