| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Hey guys - i have a hyperlink with an onclick event, that fires a function that calls (confirm) to confirm if the user really wants to follow the link. However returning false doesn't stop the link from being followed, any ideas? |
| |
|
|
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| then if myFunc returns false, it won't follow |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Ah thanks, i only called the function i.e onclick=javascript:function(); not javascript:return function(); will try that |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| don't use javascript: it's useless |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Oh ok, isn't it required for standards-compat? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| No it isn't :P |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Oh ok my mistake. thanks for your help :) |
| |
|
|
|
|