Basically what i have done is, i have made a web advert in after effects and i am looking to put it in HTML, If the user clicks on my ad, they get taken to a companion website of your choice. So i want the entire div that its in to be clickable and to make it link to another site. using javascript.
<!-- Meta -->
<meta charset="UTF-8" />
<title>Bodymovin Demo</title>
<!-- Styles-->
<style>
#bm{max-width: 970px:margin: 0 auto;}
</style>
</head>
<body>
<div id="bm"></div>
<!-- Scripts -->
<script src="lottie.js"></script>
<script src="anim.js"></script>
The expected result is once you click on the web advert, you are directed to another site.
onclick=""method on the div and trigger an event (like linking to another site) For your situation should beonclick="window.location.href="http://yourwebsite.com"