iPhone Safari - Open in new window

Discussion in 'iPhone Tips, Help and Troubleshooting' started by Stayfrosty, Jul 5, 2007.

  1. macrumors newbie

    Joined:
    Jun 29, 2007
    #1
    I love my iPhone, I really do (despite its lack of and instant messaging client, uh, the web based ones aren't the same).

    My question: Is there a way to click on a link in safari in such a way to open that link in a new window while leaving the current window alone.

    I browse forums by leaving the thread list in one window and opening threads that I want to read in other tabs/windows. Otherwise the multiple tabs that the iPhone supports has much less use for me.

    Sean
     
  2. macrumors newbie

    Joined:
    Jul 5, 2007
    #2
    I do the exact same with forums and such. Sadly I have not yet found a way to do this on the iPhone. I hope someone out there figures something out though because that would be really nice to have.
     
  3. macrumors newbie

    Joined:
    Feb 12, 2008
    #3
    I would also really like this feature, but unfortunately I asked several employees at the apple store about it and none of them thought it was possible. :(
     
  4. macrumors 68000

    Joined:
    Sep 30, 2007
    Location:
    UK
    #4
    IT IS POSSIBLE

    make a new bookmark, and make this the address:
    javascript:(function()%7Bvar%20a=document.getElementsByTagName('a');for(var%20i=0,j=a.length;i%3Cj;i++)%7Ba%5Bi%5D.setAttribute('target','_blank');var%20img=document.createElement('img');img.setAttribute('class',%20'new-window');img.setAttribute('src','data:image/gif;base64,'+'R0lGODlhEAAMALMLAL66tBISEjExMdTQyBoaGjs7OyUlJWZmZgAAAMzMzP///////wAAAAAAAAAAAAAA'+'ACH5BAEAAAsALAAAAAAQAAwAAAQ/cMlZqr2Tps13yVJBjOT4gYairqohCTDMsu4iHHgwr7UA/LqdopZS'+'DBBIpGG5lBQH0GgtU9xNJ9XZ1cnsNicRADs=');img.setAttribute('style','width:16px!important;height:12px!important;border:none!important;');a%5Bi%5D.appendChild(img);%7D%7D)();

    then, when you want to open a link in a new tab/window, open bookmarks, press that one, and each link will now open in a new tab
    only thing is to stop things opening in a new tab, you need to reload the page
     
  5. macrumors 68000

    FelixDerKater

    Joined:
    Apr 12, 2002
    #5
    I think it is indeed possible because it has happened to me by accident a couple times on sites I know not to have this action assigned to their links, but I have not been able to recreate this by choice.
     
  6. macrumors 6502

    Joined:
    Aug 4, 2006
    #6
  7. macrumors 6502a

    Mr Skills

    Joined:
    Nov 21, 2005
    #7
    Is the sad face technically necessary? :D
     
  8. macrumors 68000

    Joined:
    Sep 30, 2007
    Location:
    UK
    #8
    hmm... i guess there was some code that got changed to a sad face replace the face with a ": (" (without the spaces)

    or use tabulate, its a better option
     
  9. macrumors member

    Joined:
    Mar 9, 2006
    Location:
    NJ
    #9
    I may have figured out a better way. If you touch and hold a link, a bubble displaying the URL appears. If you release right away, the bubble closes. But if you touch a bit longer, the bubble remains - lift your finger and tap near the bubble, and the link will open in a new window. It worked from macworld and tuaw, which *may* be mobile safari biased.

    I am using an iTouch with fw 2.0.1.
     
  10. macrumors newbie

    Joined:
    Nov 30, 2008
    #10

    Has anyone else tried this? I cant get it to work.
    StuartGW
     
  11. macrumors newbie

    Joined:
    Jan 4, 2009
    #11
    Thanks philgilder

    good option! :D

    I test in IE too and works!


    HTML:
    javascript:(function()%7Bvar%20a=document.getElementsByTagName('a');for(var%20i=0,j=a.length;i%3Cj;i++)%7Ba%5Bi%5D.setAttribute('target','_blank');%7D%7D)();
     
  12. macrumors G3

    Night Spring

    Joined:
    Jul 17, 2008
    #12

Share This Page