Here’s a working example of how not to do web links. The Jobfinder section of the Belfast Telegraph website, Northern Ireland’s flagship news publication, creates ‘More Details’ links to job descriptions like this:
<a href=”javascript: callAdvert(foo)”
class=”bar”>[More Details]</a>
Why is this bad? 10% of users don’t have JavaScript enabled, thus making the job descriptions inaccessible to them. Luckily it’s easy to fix:
<a href=”/path/to/url”
onclick=”javascript: callAdvert(foo); return false”
class=”bar”>[More Details]</a>
JavaScript Links - Further Reading:
«0 CommentsOctober 11, MMIV»
You've arrived at the homepage of Stephen Stewart. The archive is available here for those who want it. This site is happily hosted by Dreamhost. Click for more?
More!? OK then, but I can't help feeling that this will be a disappointment to you.
I work as a web designer in Belfast, and I live by the sea in a shoe. You can see me here, doing my livejournal pose as idoru called it. If you need to you can email me at carisenda -at- gmail -dot- com.