I am communicating with a server and it sends me back a url to an external site. How do I automatically open that url in a new tab?
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.
I think a simple
window.openshould to the trick.But I’m pretty sure Google knows it if you ask him nicely ‘open new tab javascript’
Hope this helps