/Paul McCarthy

About Paul McCarthy

Paul's crazy about CSS and using JavaScript for good (not evil) - so crazy that he works for Webcredible5 helping to make the Internet a better place for everyone. He loves spending his time working on the world's most accessible CMS6 and is very good at CSS training7.

Striped Tables Using JavaScript

2010-05-25T22:42:29+00:00 January 23rd, 2008|JavaScript|

JavaScript can be incredibly useful when you need to automate repetitive tasks. In this article we'll implement a simple JavaScript function that will apply alternate striped rows to a table. We'll implement this technique using unobtrusive JavaScript.

Opening PDFs in a New Window with JavaScript

2010-05-25T22:43:27+00:00 January 23rd, 2008|JavaScript|

Opening documents such as PDFs in a new window should be automated using JavaScript for the following reasons. Users will often close the web browser when a PDF is opened, mistakenly believing the document has been opened in Adobe Reader, the attribute historically used to open a new window, target, has been removed from the HTML 4.01 Strict specification (it's now deprecated), opening a new window is a behaviour and should be moved to the behavioural layer.