What's the difference between [removed] and [removed] in JavaScript?

后端 未结 16 2230
故里飘歌
故里飘歌 2020-11-22 12:37

Should both of them reference the same object?

16条回答
  •  天命终不由人
    2020-11-22 13:39

    It's rare to see the difference nowadays because html 5 don't support framesets anymore. But back at the time we have frameset, document.location would redirect only the frame in which code is being executed, and window.location would redirect the entire page.

提交回复
热议问题