in a modern, tabbed browser, if I have a page in one tab that opens a page in another tab
-
how can I move from the second tab to the first tab?
-
how can I move to the first tab when the second tab is closed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AMAIK you can’t. This is a security concern. From father tab (which is a browsing context) you have access to the child tab (which is another browsing context). But not vice versa.
You might test
window.parent.focus()method, but I got no result.