Javascript
Sometimes you need to change something depending on the browser size. Often this means that you’ll need to check for the browser being resized too… To do this you use:
window.onresize = nameOfAFunction;
For an example, make sure you have a <div> with an id of ‘footer’, with a <p> tag…
This small but very handy piece of code…
onclick="javascript:return confirm('Are you sure you want to delete this?')"
For example:
<input type="submit" name="button" value="Delete Page" onclick="javascript:return confirm('Are you sure you want to delete this?')" />