Rich wrote:
> Adrienne wrote: > > > > Richard Bozman <[EMAIL PROTECTED]> wrote in > > news:[EMAIL PROTECTED]: > > > > > "Si�n" wrote: > > > > > >> Can anyone tell me if NS 4 supports Anchors (see example code @ bottom > > >> of page) and if not is there an alterntive > > >> > > >> Example code: > > >> > > >> <html> > > >> <head> > > >> <title>Anchor test</title> > > >> <meta http-equiv="Content-Type" content="text/html; > > >> charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> > > >> > > > > > > put the complete url here ..... > > > > > >> <a href="http://all the url/and page.html#test">link to anchor</a> > > >> > > > > > >> <br> > > >> <br> > > >> <br> > > >> <a name="test"></a> </body> </html> > > > > > > > AFAIK there is no need to put the complete URL, especially if the anchor is > > on the same page. > > > > <a name="test">bla bla bla</a> > > > > ..... > > > > <a href="#top">Top of page</a> > > > > The only time you would need an absolute reference is if the anchor is on > > another site. > > > > -- > > Adrienne Boswell > > find me on http://www.nextblock.com - keyword arbpen > ==================================== > > What you have in the example above > > >> <a name="test"></a> </body> </html> > is called an "empty anchor". There is no text or anything else > from the page between the <a name="test"> part and the </a> part. > Insert text from the page, that should appear at the top of screen. > This is explained somewhere on the Netscape help site. > > Empty anchors are tricky, they usually work on the same page, but > depends on which version you are using. Sometimes they come up a > couple of lines off where you want. If you are linking to an anchor > on another page, empty anchors have even a less chance to work right. > > Hope this helps. rich The problem is most likely the spaces, which are illegal in URLs. If you really MUST use spaces (and I really don't understand why), you must use %20 as any extended character must be escaped. I now use <a name="home"> </a> notice the space, but the only browser that has given me an error about an empty anchor is Mosaic. -- | Later. | Ric. |
