Hi,

Thanks Rob. Just want to ask you which of the two suggestion is more
optimize or efficient?

Thanks

On May 22, 5:16 pm, "Rob Desbois" <[EMAIL PROTECTED]> wrote:
> When you say 'text button' I'm assuming that you don't want the usual button
> created with one of:
>    <input type='button' ... />
>    <button ... />
>
> Two ways to get an anchor tag to invoke a javascript action instead of
> navigating to a different page / anchor:
>    <a href="javascript:foo()">Click Me!</a>
>    <a href="#" onclick="foo()">Click Me!</a>
>
> If you want to make any tag have the usual clickable link type cursor then
> CSS can help:
>    <p style="cursor:pointer; cursor:hand">Hover</p>
>
> The two cursor declarations are needed there as MSIE 5.0 and 5.5 only
> support 'hand', whereas other browsers use 'pointer' (although some do
> support hand as well).
>
> --rob
>
> On 5/22/07, james_027 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > Is this the best way to make a text button?
>
> > <a href="#">Click Me!</a>
>
> > It's nice that even with using <a href="#"> jquery could make almost
> > any tag to have click event, but the problem is the cursor doesn't
> > indicate that it's clickable.
>
> > Thanks in advance for any tips, suggestion, guides
>
> > cheers,
> > james
>
> --
> Rob Desbois
> Eml: [EMAIL PROTECTED]
> Tel: 01452 760631
> Mob: 07946 705987
> "There's a whale there's a whale there's a whale fish" he cried, and the
> whale was in full view.
> ...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to