Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在弹出窗口中打开一个外部站点,然后从父窗口的书签栏在该弹出窗口上执行一个小书签。但是,除了更改弹出窗口的 document.location 之类的简单任务之外,我无法弄清楚它是如何完成的。一开始有可能吗?
不,同源政策将发挥作用。浏览器不知道 JavaScript 来自小书签或页面上的脚本。