window.name as a data transport: a valid approach?

前端 未结 2 876
故里飘歌
故里飘歌 2020-12-12 23:42

Overview and original question

window.name is an interesting beast. MDN\'s description hints at the original intent:

The name

2条回答
  •  自闭症患者
    2020-12-13 00:25

    window.name isn't particularly good as a transport, as (AFAIK) it doesn't fire any events when it's changed. As a result, an application which was trying to use window.name as a two-way communications channel would have to poll it for updates.

    As far as sites that actually use it: I've never heard of any. There might be some, but I've only heard this technique discussed in a purely theoretical sense.

提交回复
热议问题