How To Enable JavaScript In Browsers

js-thumbnail

Following sections will detail about how to enable Javascript in your browser. Enabling JavaScript in Google Chrome On the web browser ,select Customize and control Google Chrome with 3 horizontal lines to the right side of the address bar. Click on Settings and at bottom of the page ,click on Show advanced settings… Click on […]

JavaScript Elements Placements

js-thumbnail

Javascript can be written internaly (in the program) or externally. These two are discussed in detail in the following sections. Internal JavaScript Code JavaScript code is written inside the html page. The script code can be written in html page either in <head> , <body> or in both <head> and <body< section. The JavaScript code […]

How To Preload Images In JavaScript

js-thumbnail

Usually high resolution images can really slow down the website. images are loaded only after an HTTP request is sent for them, either passively via an <img> tag or actively through a method call. Preloading images comes to our rescue which means loading an image into cache before being used. The simplest way to preload […]

JavaScript History Object

js-thumbnail

The History object is read only property which includes browser’s history and information about the URL’s visited by the user. It provides methods and properties for manipulating browser session history. This object can be written without the window prefix. The History object doesn’t allow the non-privileged code in the history but allows navigating the session […]

How To Test Cookie Support using JavaScript

js-thumbnail

A cookie is a small object allows servers to store user’s information on user machine. Cookies are stored in the partition assigned to the web server’s domain. All cookies for that domain are sent in every request to that web server. When a user visits a page, his name can be stored in a cookie. […]

How To Check Plug-In Support In Browser using JavaScript

js-thumbnail

A plug-in is a piece of software or module which acts as add-on or extension to a web browser and adds additional functionality to existing software application. There are programs which can be installed easily and used as part of the web browser. It allows web browser to display additional content and enables customization when […]

How To Detect Browser using JavaScript

js-thumbnail

Browser compatibility is one of the key challenge for implementing the JavaScript functions. There are number of objects and methods which are not part of the standard and supported by the browsers which are not commonly used across all the browsers. If you take an example of AJAX calls, this functionality has to be implement […]

Custom Objects in JavaScript

js-thumbnail

Custom objects are user-defined object where user can create its own object and it behaves exactly how the user wants it. We can create object by using the following steps: We can define an object by using an object function. Later on, instantiate new object by using “new” keyword. JavaScript Custom Object Syntax Where, userobject: […]

Timers in JavaScript

js-thumbnail

JavaScript supports the timing events. You can execute a method or code in the given time intervals. Timer methods are common in every programming language and it helps in scheduling the events at future defined time. There are two types of Timer methods. setInterval() setTimeout() These methods are used to execute code at specific amount of […]

Alert Messages in Javascript

js-thumbnail

Alert message box in JavaScript is used for sending the message to the user or taking the input from the user for the further processing of pages. Alert messages are one of the key part of the JavaScript programming. There are three types of popup boxes: Alert box Confirm box Prompt box. Alert Dialog Box in […]