Click to See Complete Forum and Search --> : js concole in netscape


coobs
07-16-2003, 09:23 AM
i have a question....
using netscape only, i get a java console that pops up when someone goes
to http://www.johnuher.com/portfolio.html and clicks on a thumbnail
within one of the sections....
how do i elimate that?
The console doesn't even report errors on my current webpage im viewing
at the johnuher.com site....but tells me of other js errors from past sites ive
visited - like a history of sites.

pyro
07-16-2003, 09:50 AM
I'm not getting any errors...

AdamGundry
07-16-2003, 02:09 PM
You have used href="javascript:" to do nothing in your <a> tag. Use href="#" instead.

Adam

coobs
07-16-2003, 03:12 PM
putting href="#" does seem to have worked, thank you for the help!

May I ask what that does technically? Im interested to know how it fixed it exactly.

thanks!

AdamGundry
07-17-2003, 02:30 AM
If you type "javascript:" into the Mozilla/Netscape address bar, it pops up the JS console, so that's what happens when you link to it. A hash sign (#) indicates you are linking to a named anchor within the page, but if you do not put a name after the hash it will simply go nowhere. An alternative is to put "javascript:void(0);" which runs a JS statement that does nothing, but that will cause problems for browsers which do not understand Javascript.

Adam