<body>
<div id="third">
<button id="google">Google</button>
<button id="twitter">Twitter</button>
<button id="insta">Instagram</button>
</div>
</body>
<script>
document.getElementById('google').addEventListener('click', function() {
window.location = 'https://www.google.com';
});
document.getElementById('twitter').addEventListener('click', function() {
window.location = 'https://www.twitter.com';
});
document.getElementById('insta').addEventListener('click', function() {
window.location = 'https://www.instagram.com';
});
</script>