Timeline for JavaScript: Setting location.href versus location
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 13, 2022 at 0:57 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<https://en.wikipedia.org/wiki/JavaScript>].
|
May 4, 2022 at 8:45 | comment | added | fcole90 |
Pertaining to the same-origin policy, note that the example you reference is within an iframe, so it might work differently when used on a normal page. Exact point of the page with the location.href policy: javascript.info/cross-window-communication#4q5rssu5ys
|
|
Sep 30, 2021 at 6:39 | answer | added | Ashwani Panwar | timeline score: 3 | |
Oct 7, 2019 at 9:49 | answer | added | Tigerware | timeline score: 11 | |
Feb 28, 2018 at 4:00 | comment | added | Chris Halcrow | I have an Angular 4 app that uses TypeScript 2.6.2. window.location is read only and I can only assign using window.location.href (in the context of a callback from an angular subscription), without compiler errors being reaised- maybe that's some kind of JavaScript 1.0 compatability thing or related to asynchronous handling. Basically window.location.href seems to be the only thing that always works. | |
Mar 30, 2017 at 9:54 | history | edited | Hakan Fıstık | CC BY-SA 3.0 |
added 5 characters in body
|
Dec 4, 2015 at 23:26 | answer | added | Gras Double | timeline score: 20 | |
Nov 18, 2014 at 22:46 | history | edited | Timo Tijhof | CC BY-SA 3.0 |
deleted 16 characters in body; edited title
|
Sep 28, 2014 at 14:16 | comment | added | Pacerier |
Also, replace and assign : stackoverflow.com/q/1865837/632951 , stackoverflow.com/q/7703689/632951 , stackoverflow.com/q/10302905/632951
|
|
Aug 25, 2014 at 7:49 | comment | added | Taha Jahangir |
setting location.href mail fail because of same-origin-policy: javascript.info/tutorial/…
|
|
May 7, 2014 at 15:01 | answer | added | Chadams | timeline score: 16 | |
Dec 27, 2012 at 14:25 | answer | added | Dovev Hefetz | timeline score: 24 | |
Apr 4, 2012 at 17:15 | answer | added | Kirby L. Wallace | timeline score: 65 | |
Mar 4, 2010 at 23:46 | vote | accept | chimerical | ||
Mar 4, 2010 at 23:12 | answer | added | psychotik | timeline score: 151 | |
Mar 4, 2010 at 23:11 | answer | added | bobince | timeline score: 293 | |
Mar 4, 2010 at 23:06 | history | asked | chimerical | CC BY-SA 2.5 |