var button = document.getElementById('myButton');
window.location = button.href;