タイトル: Uncaught TypeError: location.href is not a function
SEOタイトル: 【Javascriptエラー】Uncaught TypeError: location.href is not a function
| この記事の要点 |
|---|
|
エラー内容
|
Uncaught TypeError: location.href is not a function |
発生条件/原因/対処法
以下のような記述をしている際に発生するエラー。
(ちなみにInternet Explorerだとエラーは発生しない)
|
location.href(url) |
()ではなく=にすることで正常に動作する。
|
location.href=url |