Tips to avoid JavaScript Mistakes
– You’re Using Global Variables If you’re just getting started with JavaScript, you probably think it’s a great thing that all variables are global. Actually, if you’re just getting started, you might not know what that means. Global variables are…
Storing objects in IndexedDB in HTML5
Storing objects in IndexedDB in HTML5 IndexedDB has a concept of “Object Stores.” You can think of this as a typical database table.Object stores have data (obviously) but also a keypath and an optional set of indexes. Keypaths are basically unique…
How to Check your browser supports IndexedDB or not
Browser supports IndexedDB The very first thing we should do is check for IndexedDB support. While there are tools out there that provide generic ways to check for browser features, we can make this much simpler since we’re just checking for one…
.htaccess Tips and Tricks
.htaccess is the most useful file when you are developing PHP website and working with PHP and Apache. The directory level configuration of Apache server software is provided via .htaccess (Hypertext access) files. The htaccess rules falls in four…
How to change colour of font using javascript
change colour of font Those two parentheses denote the method and hold instructions on what should happen. For instance: <SCRIPT LANGUAGE=”javascript”> document.write(‘<FONT COLOR=green>Green Text</FONT>’)…
How to Get System Informations Using Javascript
//Application Code Name var codeName = navigator.appCodeName; //Application Name var appName = navigator.appName; //Application Version var appName = navigator.appVersion; //User Language and Language var language = getLanguage(); function getLanguage()…
How to create printer friendly web page using javascript
When you create a web page you usually keep in mind how it will rendered on the browser and its usability. Sometime, depending upon the content, you also know that your page might be printed by end user. User will click specially open the printable…