Tutorials and guides on JavaScript

Create a popunder in JavaScript

Javascript Script Tag

How to create a JavaScript Popunder window. A JavaScript popunder window is a new browser window that opens without removing the browser focus from the orginal window. Popunder windows are oftern used in marketing spam and downloads.

Embedding JavaScript in WordPress Posts


Some of my posts such as the wordCounter jQuery plugin include external JavaScript files via a condition in the themes header file. This is demonstrated in a previous WordPress tutorial. In answer to Anands question about triggering JavaScript functions from a within a page, I’m going to explain how to quickly embed a script within […]

Include JavaScript files on certain WordPress pages

If you need to include javascript on certain WordPress pages then add the following logic in the header.php
Here I am registering and queuing up the wordCounter JavaScript file if the current page title is ‘wordCounter jQuery Plugin’.