News & Blog

Using window.open Within a Link’s href Attribute

April 10th, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
The Javascript window.open() function will open a popup window with a specified URL and is normally placed as a link’s ‘onclick’ action: Open Popup Sometimes however, if using a CMS for example, the onclick option of a link is not accessible and all you have access to is ...

Detect Leaving Visitors with jQuery

April 8th, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Users leaving your website is never a good thing, but there are some scenarios where you may need to catch them before they head elsewhere on the web as a result of them clicking a link on your site. Let’s imagine that you want to bring to the users attention the fact they are leavin...

Open jQuery Colorbox onLoad

April 7th, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Update – 26th December 2010 (Credit to azrad) Since writing this post it seems that ColorBox has been updated meaning the solution below is now longer needed. Simply using the latest version of colorbox will allow you to open the ColorBox onLoad. I came across a scenario today where ...