You are here: Re: stopping <a> from loading new page but still performing onclick action « PHP Programming Language « IT news, forums, messages
Re: stopping <a> from loading new page but still performing onclick action

Posted by gbbulldog on 10/30/78 11:57

monomaniac21 wrote:
> hi all
>
> i want to use hyperlinks to 'load' content by changing the display of
> div tags. the problem i have is that unless i specify a href the anchor
> does not change the mouse pointer on hover even if display is set to
> block. it only look changes when there is a href there. but if i have a
> href there then when i click it will load the page, which i dont want.
>
> how can i get the anchor to look like a proper link where the users
> pointer changes on hover (in firefox) but a page does not get refreshed
> onclick only the onclick function gets loaded.
>
> regards
>
> marc

Place a single hash into the href property of the anchor tag.
(href="#").

 

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

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