HTML Articles

Page 46 of 151

isFinite() function in JavaScript

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 88 Views

The isFinite() function accepts a value and determines whether the given value is a finite number or not. If so, this method returns true else it returns false. You can also invoke this method using Number object.SyntaxIts Syntax is as followsisFinite(5655);Example    JavaScript Example           var result1 = Math.min();       document.write(isFinite(result1));       document.write("");       var result2 = Number.isFinite(100/0);       document.write(result2);       document.write("");       var result3 = Math.max(25, 36, 862);       document.write(isFinite(result3));     Outputfalse false true

Read More

encodeURIComponent() function in JavaScript

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 143 Views

The encodeURIComponent() function accepts a string value representing an URI and encodes it by replacing the characters in it using numbers (1 to 4) and escape sequence.SyntaxIts Syntax is as followsencodeURIComponent('http://www.qries.com/');Example    JavaScript Example           var result1 = encodeURIComponent('http://www.qries.com/');       document.write(result1);       document.write("");       var result2 = encodeURIComponent('http://www.tutorialspoint.com/');       document.write(encodeURIComponent(result2));     Outputhttp%3A%2F%2Fwww.qries.com%2F http%253A%252F%252Fwww.tutorialspoint.com%252F

Read More

decodeURIComponent() function in JavaScript

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 311 Views

The decodeURIComponent() function accepts a string value representing an encoded URI (Uniform Resource Identifier) decodes it and returns the result.SyntaxIts Syntax is as followsencodeURIComponent('http://www.qries.com/');Example    JavaScript Example           var encodedData = encodeURIComponent('http://www.qries.com/?x=шеллы');       document.write("Encoded Data: "+encodedData);       document.write("");       var decodedData = decodeURIComponent(encodedData);       document.write("Decoded Data: "+decodedData);     OutputEncoded Data: http%3A%2F%2Fwww.qries.com%2F%3Fx%3D%D1%88%D0%B5%D0%BB%D0%BB%D1%8B Decoded Data: http://www.qries.com/?x=шеллы

Read More

TypedArray.BYTES_PER_ELEMENT property in JavaScript

Samual Sam
Samual Sam
Updated on 11-Mar-2026 145 Views

The BYTES_PER_ELEMENT property of the Typed Array represents the number of bytes in each element in it.SyntaxIts Syntax is as followsFloat32Array.BYTES_PER_ELEMENT;Example    JavaScript Example           var sizeOfFloat64Array = Float32Array.BYTES_PER_ELEMENT;       document.write("Size of the float 32 array: "+sizeOfFloat64Array);       document.write("");       var sizeOfInt16Array = Int16Array.BYTES_PER_ELEMENT;       document.write("Size of the int 16 array: "+sizeOfInt16Array);     OutputSize of the float 32 array: 4 Size of the int 16 array: 2

Read More

TypedArray.name property in JavaScript

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 87 Views

The name property of the TypedArray object represents the name of the typed array in string (format)i.e. one of Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array.SyntaxIts Syntax is as followsFloat32Array.name;Example    JavaScript Example           var nameOfarray1 = Float32Array.name;       document.write("name of array1: "+nameOfarray1);       document.write("");       var nameOfarray2 = Int16Array.name;       document.write("name of array2: "+nameOfarray2);     Outputname of array1: Float32Array name of array2: Int16Array

Read More

TypedArray.buffer property in JavaScript

Samual Sam
Samual Sam
Updated on 11-Mar-2026 98 Views

The buffer property of the TypedArray represents the ArrayBuffer of the current TypedArray.SyntaxIts Syntax is as followsobj.buffer;Example    JavaScript Example           var buffer = new ArrayBuffer(156);       var float32 = new Float32Array(buffer);       document.write(float32.buffer.byteLength);     Output156

Read More

TypedArray.byteLength property in JavaScript

karthikeya Boyini
karthikeya Boyini
Updated on 11-Mar-2026 104 Views

The byteLength property of the TypedArray object represents the length of its(in bytes)TypedArray.SyntaxIts Syntax is as followstypedArray.byteLength();Example    JavaScript Example           var buffer = new ArrayBuffer(156);       var float32 = new Float32Array(buffer);       document.write(float32.byteLength);     Output156

Read More

TypedArray.byteOffset property in JavaScript

Samual Sam
Samual Sam
Updated on 11-Mar-2026 101 Views

The byteOffset property of the TypedArray represents the offset of the current object.SyntaxIts Syntax is as followstypedArray.byteOffset();Example    JavaScript Example           var buffer = new ArrayBuffer(156);       var float32 = new Float32Array(buffer);       document.write(float32.byteOffset);     Output0

Read More

Bootstrap Form select

Samual Sam
Samual Sam
Updated on 11-Mar-2026 434 Views

A select is used when you want to allow the user to pick from multiple options, but by default, it only allows one.Use for list options with which the user is familiar, such as states or numbers.Use multiple = "multiple" to allow the users to select more than one option.ExampleYou can try to run the following code to implement Bootstrap form select           Bootstrap Example                                                             Country                            India                Australia                US                                

Read More

Bootstrap Contextual classes

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 2K+ Views

The Bootstrap Contextual Class allows you to change the background color of your table rows or individual cells.The following are the classes −ClassDescription.activeApplies the hover color to a particular row or cell.successIndicates a successful or positive action.warningIndicates a warning that might need attention.dangerIndicates a dangerous or potentially negative actionExampleThe following is an example of the active class −Example           Bootstrap Table                                                                      Subject                Marks                Student                                                            Maths                90                Amit                                        Science                80                Aman                                        English                85                Rahul                                

Read More
Showing 451–460 of 1,508 articles
« Prev 1 44 45 46 47 48 151 Next »
Advertisements