у меня все работает:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <script type="text/javascript">
        function goGoogle(){
    location.href='http://www.google.ru'
}
    </script>
	<input type="button"  value="Button1" onclick="goGoogle()">
    <input type="button"  value="Button1" onclick="goGoogle()">
</body>
</html>
попробуй в функции поставь console.log(location);