All posts tagged in: JavaScript

banner

Open a new popup window using javascript

To open a new window using javascript can use the following function. You just have to do is send the link and the window name. function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == ...

banner

15 jQuery Code Snippets for Developers

I have collected several useful JQuery Code Snippets which you may easily copy and paste directly into your themes and create some pretty nice effects which will help you spruce up your website. Enjoy ! 1. Preloading Images (function($) { var ...

InnerHTML and Select option bug in IE

The non-DOM property innerHTML can’t add options to a tag select in Internet Explorer. Example not working: document.getElementById("my_select").innerHTML = "<option value='1'>not</option> <option ...

Get Adobe Flash player