Open google when I click the button element $(document).ready(function(){ $("button").click(function(){ window.open('http://www.google.com'); }); });