Answers for "can you use a href on a div?"

0

add href to div

<div style="cursor: pointer;" onclick="window.location='http://google.com';">
    Hello world
</div>
Posted by: Guest on August-13-2021

Code answers related to "can you use a href on a div?"

Browse Popular Code Answers by Language