I want to navigate to an HTML element having a particular ‘id’ in the same page using javascript on click of a button.
for example:
<body>
<div id="navigateHere" >
</div>
<button onclicK="navigate();" />
In the above code what should be there in the javascript function navigate() , so that on a click of a button , it will navigate to the ‘div’ element with an id ‘navigateHere’…..
Thanks in advance …
1 Answer