0

i read a lot of solutions but all of them are clicking a url, and it works, but my client ask me to do is users opens his website, it automatically open a new tab with some special offers , so my question, is there any way to open a new tab without any user intervention? , maybe a jquery plugin?, i know the tabs rely on the web browser, but it have to be a way, a lot of web pages does it,but how?

Greetings

2
  • i have hear of pop-ups, pop-unders, but never "pop-new-tab". this is a browser setting you are dealing with, and you can't change that from the script perspective (unless you have a plugin to give you that leverage). some browsers open to a new tab by default, some open in new windows. Commented Mar 27, 2012 at 9:41
  • your client came from the 90s i suppose - you ought to tell him that today this is not a good idea btw Commented Mar 27, 2012 at 9:49

2 Answers 2

1

Without modifying the configuration of browser, the answer is no, only trusted event can open a new window (or tab)

You may ask if your client could change their browser's configuration to allow a popup window from an untrusted javascript program.

Sign up to request clarification or add additional context in comments.

Comments

0

Write script in your page to open new page:

    <script>
      window.open("specialOffers.aspx");
    </script>

and in the "specialOffers.aspx" page in the tag write:

    <base target="_blank"/>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.