Questions tagged [browser-tab]

Refers to issues relating specifically to tabs in a web browser, usually issues that affect multiple tabs or communication between tabs.

115 questions
3
votes
1 answer

Restriction on number of opened tabs

There are some links on web-page. On right click there is option of 'open link in new tab'(browser option). I want to restrict user for not opening more that two tabs? How can i do this? <%@ page language="java" contentType="text/html;…
user752590
  • 111
  • 5
  • 12
  • 29
3
votes
2 answers

How can I retrieve the URL of a previously opened window?

I'm opening a window like this: var w = window.open("", "window-name", opts); Then I create an URL using some dynamic data and set the window to that URL like this: w.location.href = url; My problem is that I need to retrieve the URL I previously…
Hubro
  • 56,214
  • 69
  • 228
  • 381
3
votes
5 answers

javascript. Can't open new tab in safari

The following javascript opens a new tab fine in Firefox, chrome, and IE. but it opens a new window in safari. javascript:window.open(url,'_blank'); // opens new window in safari. I need to open a new tab NOT a new window in safari. anyone else…
RayLoveless
  • 19,880
  • 21
  • 76
  • 94
2
votes
1 answer

Browser tab knows when it has been duplicated

I want my browser tab to know when it has been duplicated. The only similar solutions I've seen focus on just the duplicated tab knowing it's been duplicated or the original tab knowing it's been duplicated but this only works on…
Ian Steffy
  • 1,234
  • 3
  • 18
  • 45
2
votes
4 answers

Cypress how to handle new tab without "target" and "href" attribute?

I am using this example but I am not able to automate the "New Tab" button. Here is a screenshot of the HTML document: I am trying to solve this by using the first answer from this topic. /// describe('Example shows…
Ivan Markov
  • 129
  • 4
  • 15
2
votes
2 answers

Flash code 'pauses' when in inactive tab?

Does flash pause its execution somehow if the browser tab in which its residing is inactive? I developed a multiplayer game using cirrus and when I tried to play it by switching tabs, making a move in each tab, there were some inconsistencies…
Astromaz3
  • 191
  • 1
  • 2
  • 10
2
votes
1 answer

Get Complete URL of Tab in Chrome Extension

I'm trying to modify a chrome extension which uploads images to Picasa and labels them with the complete URL e.g. www.domain.com/whatever.jpg, of where they were uploaded from. I'm having problems with getting the complete URL. When i try the…
dave
  • 29
  • 2
2
votes
3 answers

Ajax Success to a new tab - MVC

I am still a bit of a fresher with MVC post backs from the ajax call but I will show what I have (laymenised) and im hoping someone can point me in the direction of getting the response open in a new browser tab. I am passing my MVC Controller and…
CJH
  • 1,266
  • 2
  • 27
  • 61
2
votes
1 answer

Firefox WebExtensions API how to make AJAX call to current tab website

I want my web extension to make an AJAX call to the website which the user is currently looking at. I know that the current website has an endpoint available at /foo/bar?query=. Is there anything blocking me from using the fetch API or an…
2
votes
1 answer

Get referral Url in new tab

If you click on a link and it opens in a new tab, in that new tab you have some Javascript that gets the referral url but the referral url equals nothing or undefined. I want to know if it is possible to get the referral url even when the link has…
Kyle B Cox
  • 421
  • 6
  • 18
2
votes
0 answers

How can I handle browser tab restore?

The browser tab is closed and then restored using Ctrl+Shift+T. I need to execute some logic at the moment when tab is closing or is restored. But I shouldn't handle navigation to other page, so events like beforeunload are not ok. It's guaranteed…
Qwertiy
  • 19,681
  • 15
  • 61
  • 128
2
votes
2 answers

WebGL - Open URL in new tab?

How to open URL in new tab for WebGL? Tried Application.OpenURL("url"). But it's opens a tab in same window Thanks
user4589444
2
votes
1 answer

How to reset session scoped bean when re-opening page in new browser tab

Once the tab on the xhtml page (primefaces) is closed after submitted the values, I re-open a new tab which selects the same bean the old values are still there. I'd like to open a new tab with the default values (new instance of the backing…
Rod
  • 43
  • 2
  • 4
2
votes
2 answers

setInterval() is not working properly for inactive tab

i am developing one timer which is taking record of time. for that i am using setInterval method of java script now problem is that it's not working properly if tab is inactive. one solution i got to store old time and subtract from new time with…
Uday A. Navapara
  • 1,237
  • 5
  • 20
  • 40
2
votes
1 answer

Ext4.2.1 How to open a new browser tab with widget inside from another browser tab

How can I open a widget in a new browser tab like window.open() from Ext4.2.1 application. I need to be able to open widget in a new browser tab similar to what 'maximize' tool does but for the whole thing to open in a new tab window.My best guess…
Polina F.
  • 629
  • 13
  • 32