JavaScript InnerHTML

js-thumbnail

The innerHTML property is used to set or retrieve the inner HTML of the element between the start and end tags of the object. Each HTML element has innerHTML property which defines both code and text between start and end tag. In most of the cases, we use this property inside a “div” tag to […]

JavaScript Prototype

js-thumbnail

The prototype object is used to add property and methods to the objects. The prototype object can be used on any custom objects. Before creating a new object, prototype object has to be attached before the object name. Prototype is a global property which is present in almost all objects. The Object.prototype is used to […]

Number Rounding in JavaScript

js-thumbnail

The Number rounding is used in the math object. It is used to round up the given value to its nearest value. For example, consider a decimal number 4.6 then this number can be rounded up as 5, if the value after the decimal point is less than 5 then it would be round up as […]

JavaScript Debugging

js-thumbnail

Debugging is process of identifying and reducing the number of bugs or defects in the programs. There several ways to debug the JavaScript : Using JavaScript Validator JavaScript can be used to validate data in the HTML documents before sending the content to the server. Validation occur at server side when client had entered data successfully […]

JSF + Scala Integration

JSF-Thumbnail

Scala is a popular programming language for the Java Virtual Machine (JVM). Like Java, it is strongly typed and object-oriented, but it also supports functional programming. Many developers are attracted to Scala because it requires less boilerplate for common constructs, such as properties. Scala does support calling a code in the Java Library from it, so it’s possible to integrate […]

JSF + Groovy Integration

JSF-Thumbnail

Groovy is another popular programming language for the Java Virtual Machine. Groovy is dynamically typed, and groovy code can be more concise than the equivalent Java because you can omit types of variables and parameters. Almost any Java code is legal groovy, that’s make it simple and easier for getting started using it. Ultimately, using the Groovy […]

JavaScript String Object

js-thumbnail

The string object is used to represent a sequence of character. The string value should be written in quote then only it will consider as string otherwise it will be consider as integer. This tutorial highlights the benefits of using the JavaScript string object. Syntax of String Object String Properties Name Description constructor It is […]

How To Print Page using JavaScript

js-thumbnail

Some times we would like to print some important content on the web page via printer. The JavaScript provide print () method to print contents of the current window. It implements print() function of the window object. The print() method opens print dialog box which allows to select printing options. Syntax for Window.print The print() […]

Javascript – Dynamically Loading External JavaScript or CSS File

js-thumbnail

We can load external JavaScript(.js) and CSS(.cs) files on a page by giving reference in the head section of the web page. Syntax Loading JS file Following Example to show how to load external .js file The following code shows myfile.js file <script type=”text/javascript” src=”myfile.js”> tag is used to define client side script which uses […]

JavaScript Switch Statement

js-thumbnail

The switch statement is same as of if/else statement, instead using multiple if/ else statement we are using switch statement. The switch statement is selection control mechanism which allows value of a variable or expression to change the flow of the execution using multiple options. There are several options to be chosen from the available ones. […]

Close
Please support the site
By clicking any of these buttons you help our site to get better