0
Hello world! Rookie question
Is there any way to make that <a> </a> gets linked to a variable or by a function in js?
1 ответ
+ 2
I think you mean Event Listeners.
<a onclick="func()" href="#"> Click Here</a>
<script>
function func(){
alert("hello");
}
</script>