The long and short of it is:
a) If I’m trying to make an <a> tag have “#” as it’s href value such that the page won’t change when you click on it or
b) If I’m trying to reference an element in the page using href=’#htmlelement’
when clicked, the link causes the page to go to my index page (index.html/php/whatever). I have a sneaking suspicion that this might be to do with the doctype, but am unsure. Any help would be much appreciated.
(The context is in my trying to use the mootools multibox.js system to load the contents of an html element into a pop-up window. This requires the href to be set to whatever the element’s ID is but doesn’t work because the page changes location!!!)
Thanks in advance.
Help @blue-eye-labs spread the word by sharing this article on Twitter...Tweet This