X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

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

Kuphostiwe

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('/')
Isicaphuno

Eminye Imininingwane Yohlelo

Fakela amapulagi

  • Shockwave Flash 32.0 r0

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Eminye Imininingwane

jscher2000
  • Top 10 Contributor
8792 izisombululo 71906 izimpendulo
Kuphostiwe

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.
Ingabe lokhu kube usizo kuwena?
Isicaphuno

Umnikazi wombuzo

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

Not sure, one browser says it is OK Firefox says not
Ingabe lokhu kube usizo kuwena?
Isicaphuno
jscher2000
  • Top 10 Contributor
8792 izisombululo 71906 izimpendulo
Kuphostiwe

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.
Ingabe lokhu kube usizo kuwena? 0
Isicaphuno

Umnikazi wombuzo

Could you give me specific URL names?

Could you give me specific URL names?
Ingabe lokhu kube usizo kuwena?
Isicaphuno
jscher2000
  • Top 10 Contributor
8792 izisombululo 71906 izimpendulo
Kuphostiwe

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/
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Buza umbuzo

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.