... and change its CSS properties without ... Class Name Runtime using javascript onclick ... just change the CSS class name in Runtime by using javascript. This tutorial resides in the JavaScript video index under the General Programming section. This tutorial resides in the JavaScript video index under the General Programming section. CSS Click Events An ... use to detect a click using CSS only, without a single line of JavaScript, ... click event with CSS, using the :target pseudo-class. The second approach involves adding and removing class values that, in turn, change which style rules get applied. javascript - onclick change css class. I know there is probably an easy answer to this but I'm tired of spinning my wheels. ##Hide and show a div with CSS. ... we will be adding >div to the class. If you are aiming to make HTML elements and change its CSS properties without reloading the entire page then this ...