> I forgot about this possibility (i'm not an HTML expert). 
> However, I think I 
> may have to set the href attribute to '#'.
> 

Here's probably way more information than you ever wanted to know... ;0)

Yes, of course this will work.  Be aware that "#" (empty anchor) will
send users to the top of the page in some browsers.  Other alternatives
are: "javascript:;" (used by Dreamweaver), "javascript://" and "?".
Anything with "javascript" in it can be decieving though, since users
might thinks it's a JavaScript error.  I recommend adding
onmouseover="window.status='Some nice message'; return false" and
onmouseout="window.status='';return false" to pretty up the status bar.

For users with JavaScript turned off, it's recommend that the href
attribute points to a real resource, so they'll get a page explaining
that something went wrong or something.  Of course, this is only if
you're worried about users with JavaScript turned off.  

Read more at:
http://diveintoaccessibility.org/day_13_using_real_links.html

By having ";return false" after your function call, it tells the browser
to not follow the link, that the function will handle anything.

HTH,

Matt



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to