A
A
Antokha2015-07-18 21:36:42
JavaScript
Antokha, 2015-07-18 21:36:42

New tab via JS without browser blocking?

how to open a new tab via JS without being blocked by the browser?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vanes Ri_Lax, 2015-07-20
@donalddd

If you need to open a regular tab, isn't it easier to just do this

<script type="text/javascript">
  window.open("url");
</script>

A regular tab will open with the address

J
JViktor, 2015-07-19
@JViktor

Well, you can try to write an html link with the target="_blank" property, then through jquery the script itself clicks on the link id, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question