Found 601 Articles for Front End Scripts

ArrayBuffer.isView() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 09:57:17

152 Views

ArrayBuffer object in JavaScript represents a fixed-length binary data buffer. The isView() function of this object accepts an argument and verifies whether it is view of ArrayBuffer (DataView, typed array). If so, it returns true else, it returns false.SyntaxIts syntax is as followsarrayBuffer.isView(arg)ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(5);       arrayBuffer = ["apple", "orange", "mango"];       var bool = ArrayBuffer.isView(new Int32Array())       document.write(bool);     OutputtrueExampleIn the same way if we try executing this function by passing an object ... Read More

ArrayBuffer.byteLength Property in JavaScript

Samual Sam
Updated on 25-Jun-2020 09:43:36

467 Views

ArrayBuffer object in JavaScript represents a fixed-length binary data buffer.The byteLength property of the ArrayBuffer returns an unsigned, 32-bit integer that specifies the size/length of the ArrayBuffer.SyntaxIts syntax is as followsarray.byteLengthExampleTry the following example. Live Demo JavaScript Example           var arrayBuffer = new ArrayBuffer(8);       var result = arrayBuffer.byteLength;       document.write("length of the array buffer is: " + result);     Outputlength of the array buffer is: 8ExampleYou can also create an array buffer object by passing a string value and get its length as in the following example. ... Read More

Usage of CSS list-style-image property

karthikeya Boyini
Updated on 03-Feb-2020 07:33:54

57 Views

The list-style-image specifies an image for the marker rather than a bullet point or number. You can try to run the following code to implement list-style-image property:Example                            Karnataka          Hyderabad          

Usage of CSS list-style-position property

Chandu yadav
Updated on 03-Feb-2020 07:32:59

92 Views

The list-style-position property indicates whether the marker should appear inside or outside of the box containing the bullet points. If the text goes onto a second line, the text will wrap underneath the marker, for the value inside.Example If the text goes onto a second line, the text will be aligned with the start of the first line, for the value outside.                            Maths          Science          

Set marker outside of the box containing the bullet points with CSS

Ankith Reddy
Updated on 03-Feb-2020 07:32:20

193 Views

To set marker outside of the box containing the bullet points, use the list-style-position property with the value outside.Example The outside value means if the text goes onto a second line, the text will be aligned with the start of the first line                            Maths          Social Science          Physics                      Maths          Social Science          Physics          

Set marker inside of the box containing the bullet points with CSS

George John
Updated on 03-Feb-2020 07:31:33

445 Views

To set marker inside of the box containing the bullet points, use the list-style-position property with the value inside. The inside value means if the text goes onto a second line, the text will wrap underneath the marker. It will also appear indented to where the text would have started if the list had a value of outside.Example                            Maths          Social Science          Physics                      Maths          Social Science          Physics          

Set the distance between the marker and the text relating to that marker with CSS

Arjun Thakur
Updated on 03-Feb-2020 07:30:39

230 Views

The marker-offset property allows you to specify the distance between the marker and the text relating to that marker.Example You can try to run the following code to implement marker-offset property                            UK          US                      UK          US          

Specify all the list properties into a single expression with CSS

Samual Sam
Updated on 03-Feb-2020 06:58:11

71 Views

The list-style property allows you to specify all the list properties into a single expression.ExampleYou can try to run the following code to list all properties like list-style, type, etc in one line:                            Laptop          Desktop System                      Laptop          Desktop System          

Set image for bullet style with CSS

Chandu yadav
Updated on 03-Feb-2020 07:09:41

401 Views

The list-style-image allows you to specify an image so that you can use your own bullet style.ExampleYou can try to run the following code to set an image for bullet with CSS                            Football          Cricket          

Style unordered lists markers with CSS

Lakshmi Srinivas
Updated on 03-Feb-2020 07:07:41

119 Views

The list-style-type property allows you to control the shape or style the unordered lists markers.Example                            India          UK          US          

Previous 1 ... 3 4 5 6 7 ... 61 Next
Advertisements