Blog Archives

Javascript code for creating a POP-UP window

We have already seen about creating a POP-UP menus using javascript. Let us see how to create a POP-UP window using javscript. Now we are going create code html file and we are going to add the link, whenever the

Posted in Javascript Tagged with: , ,

How to use javascript pop-up menus

Javascript has three types of popup boxes Alert Confirm Prompt ALERT Javascript alert are the kind of  information to the user. If you have not enabled the JavaScript on your web browser, then you may not able to get “alert”

Posted in Javascript Tagged with: ,

Use jQuery’s serialize method to save your coding time

Still now many peoples are  using the query string parameters while creating jquery code for posting their form using ajax method of jquery. We have to spend lot of time in creating the dataString value if the form has lot

Posted in jQuery Tagged with: ,

Javascript for…in loop

Javascript for loop is used to do a set of operations many times. At the same time for…in is used to loops through properties of an object SYNTAX: for (variable in object) { //statements } EXAMPLE: OUTPUT: XXX 1 92.5

Posted in Javascript Tagged with:

jQuery Selectors

jQuery selectors allows you to select and manipulate HTML elements as a group or as a single element. It  selects HTML elements (or groups of elements) by element name, attribute name or by content. JQUERY ELEMENT SELECTORS: It uses CSS

Posted in jQuery Tagged with: , ,

jQuery Syntax

The jQuery syntax is made for selecting HTML elements and to perform some action on those element(s). Basic syntax is: $(selector).action() A dollar sign to define jQuery A (selector) to “query (or find)” HTML elements A jQuery action() to be

Posted in jQuery Tagged with: ,

jQuery Introduction

JQuery is a type of  JavaScript library that emphasizes interaction between JavaScript and HTML. It provides easier access to the DOM model and it also simplifies the creation of animations, communicating with server, document traversing and event handling. Another striking

Posted in jQuery Tagged with: ,

JavaScript getElementById

Accessing Form Elements using getElementById In order to access the form element, we can use the method getElementById() like this: var name_element = document.getElementById(‘txt_name’); Here txt_name is id of any form fields. Consider this form input element, <input type=”text” name=”name”

Posted in Javascript Tagged with:

JavaScript Window.Location

The window.location() is used to know the current page name (current url) and also used to redirect to new url. If you want to redirect all your visitors to www.learnwebdevelopment.info site when they arrived at your site, you would just

Posted in Javascript Tagged with:

Javascript popup

In JavaScript you can create three kinds of popup boxes: Alert box, Confirm box, and Prompt box. Alert Box An alert box is often used if you want to know input from user. When an alert box pops up, the

Posted in Javascript Tagged with: