Sharon Christine has Published 413 Articles

How to set the opacity level for an element with JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 13:27:01

779 Views

Use the opacity property in JavaScript to set the opacity level. You can try to run the following code to set the opacity level for an element with JavaScript −ExampleLive Demo                    #box {             width: ... Read More

How to set listStyleImage, listStylePosition, and listStyleType in one declaration with JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 13:03:09

110 Views

To set the list properties in a single declaration, use the listStyle property in JavaScript.ExampleYou can try to run the following code to set the listStylePosition and listStyleType property in one declaration with JavaScript −Live Demo                    One     ... Read More

How to set the brightness and contrast of an image with JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 12:36:37

4K+ Views

To set the brightness, use the brightness property and for contrast, use the contrast property.ExampleYou can try to run the following code to use image filters with JavaScript −Live Demo           Click below to change the brightness and contrast of the image.       ... Read More

How to set fontStyle, fontVariant, fontWeight, fontSize, lineHeight, and fontFamily in one declaration with JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 12:08:47

121 Views

To set all the font properties, use the JavaScript font property. You can try to run the following code to set all font properties in a single declaration with JavaScript −ExampleLive Demo           Heading 1                This is Demo ... Read More

How to set the starting position of a background image in JavaScript DOM?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 10:00:38

503 Views

To set the starting position of a background image in JavaScript, use the backgroundposition property. It allows you to set the position of the image.ExampleYou can try to run the following code to learn how to set all the position of a background image with JavaScript −Live Demo   ... Read More

How to set the color of the bottom border in JavaScript DOM?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 09:14:25

903 Views

To set the color of the bottom border in JavaScript, use the borderBottomColor property. It allows you to set the border color for the bottom of a border.ExampleYou can try to run the following code to learn how to set the color of the bottom border −Live Demo   ... Read More

How to get the value of the usemap attribute in JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 08:53:15

292 Views

To get the value of the usemap attribute of a link in JavaScript, use the useMap property. The usemap attribute is used to tell that the document is html (text/html) or css (text/css), etc.Client-side image maps are enabled by the usemap attribute for the tag and defined by special ... Read More

What is availWidth property in JavaScript?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 07:54:22

101 Views

Use the screen.availWidth property to return the width of the user’s screen. The result will be in pixels and the Taskbar feature won’t be included.ExampleYou can try to run the following code to learn how to work with the screen.availWidth property in JavaScript −Live Demo         ... Read More

With JavaScript DOM delete rows in a table?

Sharon Christine

Sharon Christine

Updated on 23-Jun-2020 07:33:28

6K+ Views

To delete rows in a table in JavaScript, use the DOM deleteRow() method.ExampleYou can try to run the following code to learn how to delete rows in a table. The code deletes rows one at a time −Live Demo                 function ... Read More

How can we alter table to add MySQL stored GENERATED COLUMNS?

Sharon Christine

Sharon Christine

Updated on 22-Jun-2020 14:35:06

215 Views

For adding MySQL stored GENERATED COLUMNS in a table, we can use the same syntax as adding a column just adding “AS(expression)” after the data type. Its syntax would be as follows −SyntaxALTER TABLE table_name ADD COLUMN column_name AS(expression)STORED;Examplemysql> ALTER TABLE employee_data_stored ADD COLUMN FULLName Varchar(200) AS (CONCAT_WS(" ", 'First_name', ... Read More

Advertisements