Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

One window, several tabs. Each tab has links to photos. How do I open each photo, regardless of tab, in the same window.?

  • 2 ответа
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от cor-el

more options

One window, several tabs. Each tab has links to photos. I want to open photos in the same window regardless of tab.

For example, one tab has links to photos of Toronto, the next tab has links to photos of Vancouver. I click on a photo link (generally a thumbnail) in the Toronto tab. This opens in a new window. Then I click on a photo link in the Vancouver tab. The Vancouver photo opens in the same window as the Toronto photo - overwriting it. If I hit the back button in the new window it will go back to the Toronto photo.

I used to be able to do this.

Window 1 has: Tab 1 -- Tab 2 -- Tab 3

Window 2 - any photo link in Tab 1,2, or 3 will open in Window 2.

Mark

One window, several tabs. Each tab has links to photos. I want to open photos in the same window regardless of tab. For example, one tab has links to photos of Toronto, the next tab has links to photos of Vancouver. I click on a photo link (generally a thumbnail) in the Toronto tab. This opens in a new window. Then I click on a photo link in the Vancouver tab. The Vancouver photo opens in the same window as the Toronto photo - overwriting it. If I hit the back button in the new window it will go back to the Toronto photo. I used to be able to do this. Window 1 has: Tab 1 -- Tab 2 -- Tab 3 Window 2 - any photo link in Tab 1,2, or 3 will open in Window 2. Mark

Все ответы (2)

more options

Hmm, it sounds as though there is something unusual about how those links are coded.

A link that automatically opens in a different window or tab may be coded with any of these:

(1) "new window" : link has attribute target="_blank" -- should never overwrite

(2) "named window" : link has attribute target="sometext" -- will re-use the "sometext" window or open a new window if there is no "sometext" window

(3) window.open() script method that specifies target #1

(4) window.open() script method that specifies target #2

Can you post a link to one of the pages? If not, you can use the "Inspector" feature to learn more about the links. Right-click the link and choose Inspect Element from the context menu to open the Inspector in the lower part of the tab. After a few moments, Firefox should show the HTML code of the link.

(You appear to have posted using Internet Explorer. IE also has a similar inspector if you prefer to use that.)

more options

I would agree with Jefferson that in this case all the links specify the same target window. That is not unusual for a website that open larger images in a standalone window.

You would have to use a script or bookmarklet to modify the target attribute of the image links e.g. by parsing the town value in the URL and adding that value to the target attribute.