Comments JavaScript: Single line comments start with // 0==false // true //This is variable Var iValue=5; Multi line comments start
JavaScript Data Types
JavaScript dynamic data types are explained as follows: var x; // Now x is undefined var x = 5; //
Get the value of a textbox using javascript
Get the value of a textbox using javascript sample code: <!DOCTYPE html> <html> <head> <script> // access the value of
How to add JavaScript inside a web page?
There are mainly two ways from which we can add javascript inside web page as follows: A) Inside <head> tag.
Yes or No confirm box using jQuery
Files required for Yes or No confirm box using jQuery: Jquery.alerts.css Jquery.alerts.js help.gif(in root image folder) important.gif(in root image folder) info.gif(in
Difference between SOAP and REST
What is the difference between soap and rest, which has been explained as below: SOAP REST SOAP stands for Simple object
replace method in javascript
Replace method in javascript The JavaScript replace() method searches a string for a specified value, or a regular expression, and
JavaScript lastIndexOf() Method
The JavaScript lastIndexOf() method returns the position of the last occurrence of a specified value in a string. Syntax: string.lastIndexOf(searchvalue,start)
JavaScript indexOf() Method
JavaScript indexof method The indexOf() method returns the position of the first occurrence of a specified value in a string.
JavaScript concat() Method
The JavaScript concat method is used to join two or more strings. Syntax: string.concat(string1, string2, …, stri ng N) Example
JavaScript String Methods
JavaScript String Methods Description charAt() Returns the character at the specified index charCodeAt() Returns the Unicode of the character at
JavaScript fromCharCode() Method
The JavaScript fromCharCode method converts Unicode values into characters. Syntax: String.fromCharCode(n1, n2, …, nX) Example: var word = String.fromCharCode(72,69,76,76,79); alert(word);