When I give value as a parameter to function,
such like this,
<html>
<head>
<style rel="stylesheet">
.A { border: 1px solid red; background-color: white }
</style>
<script>
function clicked(v) {
console.log(v);
}
</script>
</head>
<body>
<input type="button" class="A" value="1" onclick="clicked(value)">
</body>
</html>
It works well.
It shows me v's value.
However, when I give class as a parameter,
such like this,
<html>
<head>
<style rel="stylesheet">
.A { border: 1px solid red; background-color: white }
</style>
<script>
function clicked(c) {
console.log(c);
}
</script>
</head>
<body>
<input type="button" class="A" value="1" onclick="clicked(class)">
</body>
</html>
It gives me an error.
I want to make it show the button's class option, "A".
How can I make it?