How to Get CSS Property Value in Javascript?

In this article, we get CSS property value in javascript. To do this task we have two methods, the first one is The style property and the second one is getComputedStyle. Method 1: The Style Property The style read-only and retrieves property returns the inline style of an element. HTML Javascript Result Method 2: getComputedStyle The Window.getComputedStyle() the method returns an … Read more

How to Remove Class Using Javascript?

In this article, we remove the CSS class using javascript. We create a simple text with some CSS and create a button. After clicking on the button call a javascript function and remove the class using javascript. HTML CSS Javascript I hope this code will helpful for you. BrijBrijpal Sharma is a web developer with … Read more

Toggle Disabled Attribute in Jquery

In this article, In this article, we are going to create an HTML input box that is Toggle Disabled and Enable by a single button in Jquery. HTML Javascript I hope this code will helpful for you. BrijBrijpal Sharma is a web developer with a passion for writing tech tutorials. Learn JavaScript and other web … Read more

How to Make a BMI Calculator in Javascript?

In this blog post, we make a BMI calculator in simple javascript code. BMI (Body mass index) formula measures total body fat and whether a person is a healthy weight. First, make an HTML form to get input value from the user. HTML javascript First of all, we have got the input value and calculated … Read more

How to make a text italic in JavaScript?

To make italic text, we have two methods, first one is style.fontStyle, and the italics() method. The property sets or returns whether the style of the font is normal, italic, or oblique. Method 1: Using style.fontStyle HTML javascript Method 2: Using  italics() method We can also use the javascript italics() method. The italics() method creates an <i> An HTML … Read more