If you have a JS-only link (one that doesn't have a function if JS is disabled) you shouldn't use javascript:void(0) as the href, you should simply omit the href altogether.
This is in reference to your working example code on the bottom of the page you linked to.
Also, legal ID attributes cannot start with a number.
Just because your demo works doesn't mean it's 'elegant'.
Last edited by aj_nsc; 02-18-2012 at 03:28 PM.
I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...
awesome.
I have several recommendations for you. I use a plugin for Chrome called Ghostery, I show you have no analytic software tracking your blog. Analytic software will help identify your audience, and help in development of new content. I would also recommend to package your scripts into .zip files for several reasons. The main reason as your scripts get more complex, they will incorporate more files and it will be easier for the guest to download them and incorporate them into their project. Also, if you package these you can track the downloads with the analytic software I recommended above. Lastly if you are developing code you need to be clear in how it can be used. I would recommend using a license, there is the GNU/GPL, Creative Commons, etc. This gives the guest a definitive answer on how it can be used.
Bookmarks