AmitDiwan has Published 11365 Articles

HTML Window btoa( ) Method

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:05:53

304 Views

The HTML window btoa() method encodes a string of data in base-64 string which can be decoded by atob() method in the HTML document.SyntaxFollowing is the syntax −window.btoa(string_to_be_encoded);Let us see an example of HTML window btoa() method −Example Live Demo    body {       color: #000;   ... Read More

HTML Window atob( ) Method

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:01:12

339 Views

The HTML window btoa() method encodes a string of data in base-64 string which can be decoded by atob() method in the HTML document.SyntaxFollowing is the syntax −window.btoa(string_to_be_encoded);Let us see an example of HTML window btoa() method −Example Live Demo    body {       color: #000;   ... Read More

HTML Window alert( ) Method

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 10:54:13

689 Views

The HTML window alert() method shows an alert box with the defined message and an OK button in an HTML document.SyntaxFollowing is the syntax −alert(“message”);Let us see an example of HTML window alert() method −Example Live Demo    body {       color: #000;       ... Read More

HTML onkeypress Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 10:51:24

180 Views

The HTML onkeypress event attribute is triggered when the user presses a key on the keyboard.SyntaxFollowing is the syntax −ContentLet us see an example of HTML onkeypress event Attribute −Example Live Demo    body {       color: #000;       height: 100vh;       ... Read More

HTML onkeyup Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 10:47:01

124 Views

The HTML onkeyup event attribute is triggered when the user releases a key on the keyboard.SyntaxFollowing is the syntax −ContentLet us see an example of HTML onkeyup event Attribute −Example Live Demo    body {       color: #000;       height: 100vh;       ... Read More

HTML onkeydown Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 10:43:44

115 Views

The HTML onkeydown event attribute is triggered when the user is pressing a key on the keyboard.SyntaxFollowing is the syntax −ContentLet us see an example of HTML onkeydown event Attribute −Example Live Demo    body {       color: #000;       height: 100vh;     ... Read More

HTML onerror Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 10:40:58

224 Views

The HTML onerror event attribute is triggered when an error occurs while loading an external file in an HTML document.SyntaxFollowing is the syntax −ContentLet us see an example of HTML onerror event Attribute −Example Live Demo    body {       color: #000;       height: ... Read More

HTML onwheel Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 09:03:14

64 Views

The HTML onwheel event attribute is triggered when the user moves the wheel of the mouse on an HTML element in an HTML document.SyntaxFollowing is the syntax −ContentLet us see an example of HTML onwheel event Attribute −Example Live Demo    body {       color: #000; ... Read More

HTML ontoggle Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 09:00:12

113 Views

The HTML ontoggle event attribute is triggered when a user opens or closes the HTML element in an HTML document.SyntaxFollowing is the syntax −ContentLet us see an example of HTML ontoggle event Attribute −Example Live Demo    body {       color: #000;       ... Read More

HTML onselect Event Attribute

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 08:57:54

117 Views

The HTML onselect event attribute is triggered when a user selects some text of an HTML element in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML onselect event Attribute −Example Live Demo    body {       color: #000;       ... Read More

Advertisements