Re: stopping <a> from loading new page but still performing onclick action
- From: "Nick D" <nick.denardis@xxxxxxxxx>
- Date: 4 Sep 2006 11:11:11 -0700
Sometimes this could cause a problem by jumping to the top of the page.
Another way to do this without making the page jump would be to put (<a
href="javascript:void(0)" onclick="SomeFunction()">)
gbbulldog wrote:
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="#").
.
- Follow-Ups:
- References:
- stopping <a> from loading new page but still performing onclick action
- From: monomaniac21
- Re: stopping <a> from loading new page but still performing onclick action
- From: gbbulldog
- stopping <a> from loading new page but still performing onclick action
- Prev by Date: Re: Typecast problem in PHP 5.0.4
- Next by Date: Re: How to upload form data containing special characters correctly?
- Previous by thread: Re: stopping <a> from loading new page but still performing onclick action
- Next by thread: Re: stopping <a> from loading new page but still performing onclick action
- Index(es):
Relevant Pages
|