javascript redirect


window.location.href = 'http://www.google.com'; //Will take you to Google.
window.open('http://www.google.com'); //This will open Google in a new window.
window.location.href:別のページにリダイレクト
参考文献
  • https://www.codingfactory.net/10691
  • https://stackoverflow.com/questions/7077770/window-location-href-and-window-open-methods-in-javascript