Chandu yadav has Published 1163 Articles

Execute a script at the start of a drag operation in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 09:44:59

51 Views

Use the ondragstart attribute in HTML to execute a script at the start of a drag operation in HTML.ExampleYou can try to run the following code to implement the ondragstart attribute −                    drag {          float: left; ... Read More

Execute a script each time the volume of a video/audio is changed in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 07:39:35

74 Views

The onvolumechange attribute trigger when the user change the volume of the video or audio accessed on the web page. This change can be volume up, volume down, mute, etc.ExampleYou can try to run the following code to implement onvolumechange attribute −           Play     ... Read More

Execute a script when the seeking attribute is set to false indicating that seeking has ended in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 07:03:46

117 Views

The onseeked attribute executes a script when the user skips or moves to a new position in the audio or video.ExampleYou can try to run the following code to implement onseeked attribute −           Play                   ... Read More

How to display a directory list in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 06:38:02

9K+ Views

Use the dir tag in HTML to display directory list. This is very similar to tag but do not use since it is deprecated now.The following is the attribute −AttributeValueDescriptionCompactcompactDeprecated − Specifies a compact rendering.ExampleYou can try to run the following code to show a directory list in ... Read More

How to create a hyperlink to link another document in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 05:50:20

2K+ Views

Use the tag to create a hyperlink. The HTML tag is used for creating a hyperlink either to another document, or somewhere within the current document.The following are the attributes −AttributeValueDescriptionCharsetcharacter_encodingDefines the character encoding of the linked document.Cordsif shape = "rect" then coords = "left, top, right, bottom"if ... Read More

Execute a script when a user is pressing a key in HTML?

Chandu yadav

Chandu yadav

Updated on 03-Mar-2020 05:36:03

264 Views

Use the onkeydown attribute. The onkeydown attribute triggers when the user is pressing a key.ExampleYou can try to run the following code to execute a script on pressing a key −           Press a key inside the textbox.                      function display() {             alert("You pressed a key!");          }          

How do we display the thickness of the border of an element in HTML?

Chandu yadav

Chandu yadav

Updated on 02-Mar-2020 12:46:08

120 Views

Use the border attribute in HTML to display the thickness of the border.Note − This attribute is not supported in HTML5.ExampleYou can try to run the following code to learn how to implement border attribute in HTML −           Cricketers         ... Read More

How do we create preformatted text in HTML?

Chandu yadav

Chandu yadav

Updated on 02-Mar-2020 12:35:10

114 Views

Use the tag to create preformatted text. Note − The tag deprecated.ExampleYou can try to run the following code to learn how to create preformatted text in HTML −           HTML xmp Tag               HTML tags include       for bold text, for italic text.    

How MySQL stored GENERATED COLUMNS can work with built-in functions?

Chandu yadav

Chandu yadav

Updated on 27-Feb-2020 12:30:33

101 Views

It can be illustrated with the help of an example in which we are creating a stored generated column in the table named ‘employee_data_stored’. As we know that stored generated column can be generated by using the keyword ‘stored’.Examplemysql> Create table employee_data_stored(ID INT AUTO_INCREMENT PRIMARY KEY, First_name VARCHAR(50) NOT NULL, ... Read More

How can we see the list of views stored in a particular MySQL database?

Chandu yadav

Chandu yadav

Updated on 17-Feb-2020 08:54:10

108 Views

With the help of following queries,  we can see the list of views stored in a particular database. We are using the database named ‘query’ here.mysql> SELECT TABLE_NAME FROM information_schema.`TABLES` WHERE TABLE_TYPE LIKE'view' AND TABLE_SCHEMA LIKE 'query'; +-----------------------------+ | TABLE_NAME                  | +-----------------------------+ ... Read More

Advertisements