When I do a window.open() is there a way to tell the browser to stay on the current window or tab and not go to the new tab or window?
Share
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.
Found that a way to do this is with
self.focus()in the javascript called from the original window. Got this from reading that discussion: Prevent window.open from focusing.So my code looks like this.