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
610
votes
12 answers

How to open link in a new tab in HTML?

I'm working on an HTML project, and I can't find out how to open a link in a new tab without JavaScript. I already know that opens the link in the same tab. Any ideas how to make it open in a new one?
ZenthyxProgramming
  • 6,283
  • 3
  • 16
  • 15
264
votes
11 answers

How can I get the URL of the current tab from a Google Chrome extension?

I'm having fun with Google Chrome extension, and I just want to know how can I store the URL of the current tab in a variable?
Axiol
  • 5,664
  • 9
  • 37
  • 49
138
votes
36 answers

How to open a new tab using Selenium WebDriver in Java?

How can I open a new tab in the existing Firefox browser using Selenium WebDriver (a.k.a. Selenium 2) in Java?
Bhakti Shah
  • 1,623
  • 3
  • 13
  • 13
36
votes
4 answers

Chrome-Extension: iterate through all tabs?

How would I iterate through all tabs a user has open and then check if they have a particular HTML item with id = 'item'?
Skizit
  • 43,506
  • 91
  • 209
  • 269
28
votes
14 answers

How to open a link in new tab (chrome) using Selenium WebDriver?

System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10,…
nlogn
  • 1,034
  • 4
  • 11
  • 17
19
votes
3 answers

Store browser tab specific data

I have a web application that store information about recently visited pages, let's call them A. When a user visits another page type, called B, I render a menu at the top with a button to point to the most recently visited A-page. The B-pages are…
olofom
  • 6,233
  • 11
  • 37
  • 50
18
votes
6 answers

How to know if browser tab is already open using Javascript?

How to know or check if the two browser tab is already open and if those tab are open, the user will receive an alert box or msg box saying that 'the url is already open', something like that, in pure/native JavaScript? This browser tab is contain…
User014019
  • 1,215
  • 8
  • 34
  • 66
17
votes
4 answers

How can you display a session timeout warning that is smart enough to handle multiple open browsers or tabs

I have implemented a session timeout warning using javascript that simply asks the user if they want to extend their session or logout. The problem is that this is for an intranet portal where power users will often have several browser windows or…
Joel
  • 814
  • 2
  • 9
  • 19
13
votes
6 answers

Selenium 2: Open link in new tab and close tabs

I want to be able to open a link in a new tab in Selenium 2. Also i want to close the tab when i am finished interacting with the page. How is this possible if I have a WebElement of an tag? I am using the Java API of Selenium 2 with the Firefox…
Alp
  • 29,274
  • 27
  • 120
  • 198
13
votes
4 answers

How to open url in a new tab in Django?

I have to open the result page using render_to_response on a new tab.
Vivek S
  • 5,384
  • 8
  • 51
  • 72
12
votes
4 answers

check if a browser tab is already open so I don't make extra tabs

When a user adds an item to our shopping cart it opens our store in a new tab. Different websites oddly enough. I would like to check if the tab is already open and then repopulate it it with the second item instead of opening another tab with the…
BobB
  • 750
  • 1
  • 9
  • 22
10
votes
5 answers

Get Browser Tab Index/Id

So in most current browsers there is the feature of Tabs, is there a way to get the Tab index? so Tab 1 has www.google.com opened in it and Tab 2 has www.google.com opened in it, is there a way to identify what the Tab index is? Pseudo Code: if($tab…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
7
votes
2 answers

Session shared in between tabs

I have JAVA web application where I need to stop session being shared between browser tabs, meaning User opens a browser, Logs into his account and opens a particular page in a new tab in the same browser. As per the default setting the session is…
Oceanvijai
  • 383
  • 2
  • 5
  • 15
7
votes
3 answers

Switch between browser tabs using Selenium WebDriver with Java

I need to switch between the browser tabs, used the following code, driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"\t"); It was working properly sometimes only, but sometimes it is showing an exception. Can anyone suggest me is…
mahi
  • 191
  • 1
  • 2
  • 16
6
votes
2 answers

Angular open component in new tab without bootstrapping whole app

In my Angular 10 app I would like to open component in new browser tab. I would like to do that without bootstrapping whole app and creating another app instance. I found article Open Angular components dynamically in new browser tab without…
user3626048
  • 706
  • 4
  • 19
  • 52
1
2 3 4 5 6 7 8