Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript onclick links

overriding html <a href ="#none"...



6:54 pm on Oct 12, 2005 (gmt 0)

10+ Year Member

I use anchor links with Javascript like -

<a href="#none" onclick="Javascript:displayImage('...')" target="_blank"><img ...><p>Larger Version.</a>

Sometimes without the text 'Larger Image' too.

Is this consider cloaking or bad practise?


7:41 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I'm not sure what this accomplishes, but it's definitely not cloaking.


8:58 pm on Oct 13, 2005 (gmt 0)

10+ Year Member


I'm just searching for possibilities as I lost 90-95% of Googles traffic since early June in the 'American Whisky' update. Not commercial, but I would like to know or at least have some idea why.

The anchor link does does two things:-

1. Scroll to the top of page in this case because there is no valid <a name="none"> anchor on the page, if there was a valid anchor name link in IE it would bring it to the top of page if it was off screen.

2. Load a pop-up window with the larger image, when you click on the image or the text 'larger image'. Just an option if you want a bigger picture without downloading it onto the page.


3:31 am on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

By "American Whiskey" I'm guessing you mean the "Bourbon" update :)

I don't think the javascript would cause you problems with Google.


Featured Threads

Hot Threads This Week

Hot Threads This Month