|
| |
|
|
Mane
Posts: 78 Joined: 7/7/2005 Status: offline
|
Number sign (#) as href - 5/2/2008 22:30:52
I think I remember reading something about this but I can't find it now... Is it acceptable to use the number/hash sign # in links that are only used to trigger javascript but should stay on the same page, or are there some accessibility problems etc? Is there some better alternative, for example not even including a href property? When using the href=# method, the page scrolls back to the top. Is there a way to avoid this? Thanks
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: Number sign (#) as href - 5/4/2008 11:21:34
For me, if all I want to do is trigger a JS, I do something like this: <a href="javascript:functionName();">Click Me</a> No # there. The href doesn't have to be a link specifically. Hope it helps.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
Mane
Posts: 78 Joined: 7/7/2005 Status: offline
|
RE: Number sign (#) as href - 5/6/2008 18:33:03
Oh, that seems simple. Thanks!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|