window.top.location ve window.location öğelerini senkronize etmek nasıl?window.top.location vs window.location
5
A
cevap
5
Eğer çerçeve belgesinin konuma çerçevesi (top
) üst öğesini ayarlamak bu şekilde görür ... Tabii
top.location = self.location;
, bu kod iframe içinde yürütülür, ve succeptible sunulması gerekiyor Same-Origin Policy.
0
window.top.location, i-frame veya sayfada bile olsa, broswer'in adres çubuğu konumuna geri dönüyor. window.location, facebook uygulamalarında bulunduğunuz sayfanın adresini döndürür. Sorgu-string top istiyorsanız u üst konuma değiştirmek isterseniz
alert(window.top.location);
kullanmak zorunda ardından
window.top.location = "http://whatever.com";
İlgili konular
- 1. Window.location
- 2. window.location ne zaman değişir?
- 3. JavaScript window.location ayarı
- 4. window.location + özel window.location.search
- 5. Window.location URL'ye gitmiyor
- 6. setTimeout ve window.location (location.href) çalışmıyor
- 7. Window.location kullanırken dosya adını değiştirin
- 8. javascript window.location iframe, ana pencereye git
- 9. $ window.location success message in Angular Js
- 10. Tepki-redux olsun sitesi taban URL/window.location
- 11. Javascript: window.location ev sahibi olmaktan başka her şey var mı?
- 12. qUnit sınaması için window.location nesnesini kullanmak mümkün mü?
- 13. window.location() Bir onClick ile Gönder düğmesini sahip sayfasını
- 14. AngularJS içinde window.location veya window.open ayarlanması IE 11
- 15. ID vs UniqueID vs ClientID vs UniqueClientID vs StaticClientID?
- 16. & vs * ve | VS +
- 17. SpiderMonkey vs JavaScriptCore vs?
- 18. VS
- 19. VS
- 20. IDataErrorInfo vs ValidationRule vs Exception
- 21. cudaStreamSynchronize vs CudaDeviceSynchronize vs cudaThreadSynchronize
- 22. visualvm vs JProbe vs JProfiler
- 23. _mm_load_ps vs. _mm_load_pd vs. etc
- 24. pycuda vs theano vs pylearn2
- 25. is_numeric() vs is_float() vs is_int()
- 26. TextColor vs TextColorPrimary vs TextColorSecondary
- 27. GridView vs DataList vs için Repeater vs ListView 'in performansı
- 28. Qt: UI ile vs vs ile xml vs ile qml
- 29. Barındırma PowerShell: PowerShell vs. Runspace vs. RunspacePool vs. Pipeline
- 30. Python vs Jython vs IronPython vs wxPython arasındaki fark nedir?