Wann würden Sie locationeine URL-Zeichenfolge im Vergleich zur Einstellung festlegen location.href?
location = "http://www.stackoverflow.com";
vs.
location.href = "http://www.stackoverflow.com";
replaceund assign: stackoverflow.com/q/1865837/632951 , stackoverflow.com/q/7703689/632951 , stackoverflow.com/q/10302905/632951
location.hrefE-Mail schlägt aufgrund der Richtlinie für denselben Ursprung fehl: javascript.info/tutorial/…