location = 'URL' will set where to redirect to when the button is clicked. P.S. You will notice that some other tutorials use location.href = ' ...
確定! 回上一頁