window.location.href not opening website
Hello,
The code below does not open the link, instead opens a blank page or IIS error. This issue occurs in all major browsers.
In order to fix the issue,you must prepend the correct protocol before the website such as (http:// or https:// or ftp://). If the protocol is omitted, the link is interpreted as a file in the website.
Cheers!
The code below does not open the link, instead opens a blank page or IIS error. This issue occurs in all major browsers.
window.location.href = 'www.nba.com';
window.location.href ='http://www.nba.com';
Cheers!
Comments
Post a Comment