X
Bakstelėkite čia, kad pereitumėte į mobiliąją šios svetainės versiją.

Pagalbos forumas

location.assign('') not same as location.assign('/')

Paskelbta

location.assign('/') takes me to home page of site location.assign() does nothing (MS edge goes to home page) Not sure which is right, but would like consistency between browsers, for now using location.assign('/')

location.assign('/') takes me to home page of site location.assign('') does nothing (MS edge goes to home page) Not sure which is right, but would like consistency between browsers, for now using location.assign('/')
Citata

Papildomi duomenys apie sistemą

Įdiegti papildiniai

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

More Information

jscher2000
  • Top 10 Contributor
Sprendimų: 8793 Atsakymų: 71936

https://developer.mozilla.org/docs/Web/API/Location/assign says if you don't supply a valid URL, the browser will throw a syntax error.

https://developer.mozilla.org/docs/Web/API/Location/assign says if you don't supply a valid URL, the browser will throw a syntax error.
Was this helpful to you?
Citata

Klausimą uždavęs asmuo

Not sure, one browser says it is OK Firefox says not

Not sure, one browser says it is OK Firefox says not
Was this helpful to you?
Citata
jscher2000
  • Top 10 Contributor
Sprendimų: 8793 Atsakymų: 71936

I suggest using MDN and the caniuse site for cross-browser compatibility information.

I suggest using MDN and the caniuse site for cross-browser compatibility information.
Was this helpful to you? 0
Citata

Klausimą uždavęs asmuo

Could you give me specific URL names?

Could you give me specific URL names?
Was this helpful to you?
Citata
jscher2000
  • Top 10 Contributor
Sprendimų: 8793 Atsakymų: 71936

MDN is the site I linked to before, Mozilla Developer Network.

caniuse: https://caniuse.com/

MDN is the site I linked to before, Mozilla Developer Network. caniuse: https://caniuse.com/
Was this helpful to you?
Citata
Užduoti klausimą

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.