Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- script


wilderness - 2:56 pm on Mar 15, 2012 (gmt 0)


the deprecated html is <a name"smith">content phrase</a>

<a name> does not function in any version of FF.

The url to the section of the page would be:
example.com/folder/page.html#smith

I don't really understand what the purpose of this script is, since browsers will correctly jump to elements with a matching id value as the hash. Are you trying to get the browser to jump to the END of the element?


Most of the pages on my sites are in excess of 1,000 words. Some pages are in the 2-3k work range.

Page anchors "<a name>" allow links to specific portions of the page. As many time per page as you wish.

I tested the Div id and it failed (at least within paragraph anchors). It was also my understanding that it may only be used once per page

The pages function fine with the standard URl absent the anchor. No loop and pages load immediately.

Also, I don't know what you mean about the lines showing on the active html page or requiring CSS file placement.



Do they present a vulnerability to the server? Only a potential Denial of Service attack in the event that a URL with no hash value is entered.
Hijacking of links? Nope.


The hijacking portion was what I was looking for.

If I insert those script lines in a page <head></head>
Than when the page is displayed, the script appears as text at the pages top.

With the script in a CSS file (which the same page utilizes) the script does not appear on page anywhere.

Many thanks for your time and reply.


Thread source:: http://www.webmasterworld.com/javascript/4429447.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com