V
V
Vinni372017-08-16 11:21:52
JavaScript
Vinni37, 2017-08-16 11:21:52

JS How to open url in chrome background tab?

Good afternoon.
How to open url in chrome background tab with javascript?
Open so that the parent window has focus.
After googling for a couple of hours, I did not find a working solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kit, 2017-08-16
@ShadowOfCasper

The question is noob. Just elementary. Show ingenuity.
Create dynamically a, add target blank to it, href with url and click trigger. With beforeUnload , the dynamic link can be deleted. Write the code yourself. As a matter of principle, I won't do it for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question