Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

focus tab onclick #40

Closed
danieltigse opened this issue May 25, 2016 · 2 comments
Closed

focus tab onclick #40

danieltigse opened this issue May 25, 2016 · 2 comments

Comments

@danieltigse
Copy link

Can you wrap a function to focus on the tab when the user click on the notification?

@Nickersoft
Copy link
Owner

From the looks of things, it seems that JavaScript has no API for controlling or switching between tabs. That said, you can focus window objects using the window.focus() method, but this can only be used for popup windows and other windows created using window.open().

So I guess, in short, there is currently no way to do this, otherwise I'd at least give you a code snippet to work with. Sorry.

@Nickersoft
Copy link
Owner

Closing this for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants