Forum Moderators: open
<a href="#" onclick="window.top.location.href=\'http://site.com/page.htm\'">link</a>
I don't really like this method but after all my other work to clean up my code I would hate to lose validation. Any one have any ideas?
<a href="page.html" onclick="window.top.location.href=\'http://site.com/page.htm\'; return false;">link</a>
Google will follow the link in the href, but browsers will use the javascript command and ignore the href. They do this because of the return false. This tells the browser to ignore the default behaviour (following the href) and execute the onClick behaviour instead.
HTH.