Tag: HTML5


12

May 2016

HTML DOM Document Object In JavaScript

The owner of all other objects in your web page is HTML DOM document object. It represents web pages. If you want to access html element you have start accessing with document object. Finding HTML Elements Method Description document.getElementById(id) Find an element by element id document.getElementsByTagName(name) Find elements by tag name document.getElementsByClassName(name) Find elements by class name Changing HTML Elements Method Description element.innerHTML =  new...

Read More


12

May 2016

HTML DOM Methods in JavaScript

These methods are actions you can perform on HTML Elements and the properties are values of HTML Elements that you can set or change. OUTPUT : My First Page


12

May 2016

HTML DOM in JavaScript

HTML DOM is used to access the elements of html document and make change them. DOM stands for Data Object Model. When a web page is loaded, the browser creates a DOM of the page. JavaScript can change all the HTML elements and css attributes in the page. DOM is a W3 Standard. It defines standard for accessing documents. “The W3C Document Object Model is...

Read More


10

May 2016

The Function() Constructor

Functions can also be defined with a built-in function constructor pf javascript called Function(). OUTPUT : JavaScrip has an built-in function constructor.


10

May 2016

Function Definitions in JavaScript

In JavaScript we defined a function using function keyword. Declaration of Function The following syntax will define the functions declaration : Example : OUTPUT : This example calls a function which performs a calculation, and returns the result:


10

May 2016

Validation API in JavaScript

Constraint Validation DOM Methods There are two methods : 1. checkValidity() 2. setCustomValidity() OUTPUT : Enter a number and click OK: OK If the number is less than 200 or greater than 400, an error message will be displayed.


10

May 2016

JSON in JavaScript

JSON Stands for JavaScript Object Notation. JSON is a format for storing and transporting data means it is a data-interchange fornat. JSON is language independent. Exmaple : This JSON syntax defines a student object: an array of 3 student records (objects): Syntax Rules : Data is in name/value pairs Data is separated(,) by commas Curly braces{} hold objects Square brackets[] hold arrays JSON Data JSON...

Read More



Page 1 of 1712345...10...Last »