Random Header Image With Javascript

To add a bit of variety to your website, you might want the header background image (or any image for that matter) to change everytime the page is loaded.
The following script is a simple way to do this using javascript

Hidden ‘Skip Navigation’ Link

It is common practice for websites to have a ’skip navigation’ link at the top of each page. This can be a huge benefit for people using your site with text browsers/screen readers or visitors with poor motor skills.
However, you might not want to display this link for other users. The easiest way to get [...]

Disable Form Submit Until Required

Sometimes you might want the submit button on a form disabled until the user has filled in mandatory checkboxes. A good example of this would be if you had terms and conditions that needed to be read/agreed to before commencing with the form submission. This would need to be checked server-side as well of course [...]

Centre A Div Horizontally And Vertically Regardless Of Window

We’ve already covered how to centre a web page horizontally regardless of screen resolution. Sometimes though, you may want to centre a div horizontally and vertically.