為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to make dynamic split browser (co-depending)?

more options

I want to make a split window - additional to main one, where I would see a different URL, built on basis of main window. For example main URL is http://xxx.com, the additional one would be http://xxx.com/inbox/search?q=[TEXT] where text would be taken from main page code - for example from metatags or from title.

any help appreciated:) Regards

I want to make a split window - additional to main one, where I would see a different URL, built on basis of main window. For example main URL is http://xxx.com, the additional one would be http://xxx.com/inbox/search?q=[TEXT] where text would be taken from main page code - for example from metatags or from title. any help appreciated:) Regards

所有回覆 (1)

more options

You might be able to do this with the Greasemonkey or Scriptish extension and a userscript.

When a page or userscript launches a new window using the window.open() method, it can specify a name for that window (e.g, "my_search"). If you keep that named window open next to your main window, every time you load a new page in the first window your script can load the new URL in the second window by re-using that window name. I need to add "in theory" because I haven't tested this idea.

To get assistance with writing a userscript, you can try this forum: Ideas and script requests - Userscripts.org.

由 jscher2000 - Support Volunteer 於 修改