You are here: Re: href="javascript:func()" vs href="#" onclick="javascript:func()" « HTML « IT news, forums, messages
Re: href="javascript:func()" vs href="#" onclick="javascript:func()"

Posted by Philip on 06/19/06 02:29

In article <1150595464.372313.293360@p79g2000cwp.googlegroups.com>,
"CRON" <cronoklee@hotmail.com> wrote:

> Best solution found::::
>
> <a href="#" onclick="func();return false">
>
> This is a handy way to stop the page from jumping around but still run
> the function.

Since Javascript is apparently a requirement for this page to operate
correctly, you might want to include a noscript block at the top like so:

<noscript>
<div>O ye pitiful mortal, thou art humbled before my site! Begone, and
return only with a browser which supporteth Javascript!
</div>
</noscript>

Or something a little less ridiculous. I think you get the picture.

Cheers

--
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация