Google help on software/programming And Windows Tricks: January 2015

helponsoftware

Thursday 15 January 2015

Open new Tab in I phone and Safari browser

<script>
function openTab(url) {
    // Create link in memory
    var a = window.document.createElement("a");
    a.target = '_blank';
    a.href = url;

    // Dispatch fake click
    var e = window.document.createEvent("MouseEvents");
    e.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
    a.dispatchEvent(e);
};
</script>

after that you can call  this function to open any url like:

openTab('url');