Click to See Complete Forum and Search --> : My anchor tag is not going to the anchor


Duke Will
07-31-2003, 07:01 PM
This is the link in my html...

<FORM ACTION="lyrics.html#allthefarms" target="_blank" METHOD=GET>

This is the anchor...

<I><A NAME="allthefarms">"All</A> The Farms Are Gone"</I>

When I click on the link, it opens a new window but it does not go down to the anchor.

BTW, see how I have the anchor surrounding the word "all?" Is that necessary? Can you just stick it BEFORE the word or does it have to be attached to something?

P.S. I also note that the URL in the address window of the new popup page is like this...

http://www.mysite.com/lyrics.html?x=12&y=13

Any idea why that x, y stuff is there? Something to do with a Netscape code provision in my code?

Khalid Ali
07-31-2003, 08:58 PM
you can not navigate internally in a page like that..if all you are trying to do is go to a local anchor inthe page then do not use form action sjust use
<a href="#alltheforms">All the forms</a>

This assumes that you have another anchor tag somewhere in the page with the name set to alltheforms

Duke Will
07-31-2003, 09:16 PM
This is my code...

<TD align="right" valign="center"><FORM ACTION="lyrics.html#allthefarms" target="_blank" METHOD=GET>
<input border=0 type="image" src="images/radio.gif" ALT="Click me"></FORM></TD>

And then I have an anchor in the lyrics.html page as I showed in the first post. I can't remember why I'm using the FORM but I think it is because I am using the "home made" radio button. It's not really a real radio button but an image of a radio button. I think someone on this forum taught me how to do that... clicking the image that looks like a radio button and it opens a new window. Hey, I just removed... target="_blank" and everything worked fine, it DID scroll down to the anchor... thus, the dillemma is that if I open a new window, it is NOT scrolling.