Helpful Information
 
 
Category: Perl Programming
redirect to url with an anchor

this is really odd. it seems to be a browser specific bug, but that doesn't seem to make much sense.

basically, i have the following code:

print "Location: <A HREF="http://www.yahoo.com/#topnn";" TARGET=_blank>http://www.yahoo.com/#topnn";</A>

in netscape (mac and pc) and ie (pc), the url prints as it should. but, for some reason, in ie 5 on the mac, the url will only print as http://www.yahoo.com/ . everything after (and including) the hash is ignored.

has anyone noticed this problem before? it seems so weird that the browser would strip it out.

putting a in front of the # didn't change anything.


any ideas?

I posted same question three days ago.
And answer was that perl syntax is OK.
But my page was opening inside <IFRAME>
and sometimes http://www.devshed.com/Talk/Forums/confused.gif even simple link on page won't open in right position and sometime it works. But if page is opening inside same frame that works.

I have one question:
Can this link open in second frame (iframe) at "Top" position if html output from cgi contains <a name="Top">-</a> ? http://www.upitnik.net/cgi-bin/trazi.cgi?action=randomurl#Top










privacy (GDPR)