It might be that you want to toggle a class, and here is a example if that is the case.
<style>
.mystyle {
font-size: 25px;
}
</style>
<div onClick='this.classList.toggle("mystyle");'>
example1
</div>
or maybe add a class to an object you clicked.
<style>
.mystyle {
font-size: 25px;
}
</style>
<div onClick='this.classList.add("mystyle");'>
example2
</div>
or, if you really want to be in control you can send the clicked object to a function and manipulate it there, in any way you like.
<div onClick='myFn(this);'>
example3
</div>
<script>
function myFn(that) {
that.style.color = "blue";
that.innerHTML = 'You clicked me!';
}
</script>