Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to changing font weight when mouse cursor is moved over object?

0
Posted

How to changing font weight when mouse cursor is moved over object?

0

In this example you will learn how to change the font weight using JavaScript. We use the “onmouseover” and “onmouseout” events. When you put the cursor on the text ‘onmouseover’ event will fire and text will turn bold. When you remove the cursor from the text ‘onmouseout’ event will fire and text will turn normal. For Example: Changing the font weight

Put the cursor on the following Paragraphs:

Paragraph 1:

Paragraph 1 will turn bold when the mouse cursor is placed on it.

Paragraph 2:

Paragrapg 2 wil

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123