Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Stayfrosty

macrumors newbie
Original poster
Jun 29, 2007
4
0
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
 

Kinmar

macrumors newbie
Jul 5, 2007
27
0
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.
 

sombdy

macrumors newbie
Feb 12, 2008
2
0
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. :(
 

philgilder

macrumors 68000
Sep 30, 2007
1,756
3
UK
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
 

FelixDerKater

macrumors 68040
Apr 12, 2002
3,621
2,188
Nirgendwo in Amerika
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

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.
 

Mr Skills

macrumors 6502a
Nov 21, 2005
803
1
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

Is the sad face technically necessary? :D
 

philgilder

macrumors 68000
Sep 30, 2007
1,756
3
UK
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
 

gr8phan

macrumors member
Mar 9, 2006
59
2
NJ
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.
 

stuartgw

macrumors newbie
Nov 30, 2008
2
0
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.


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

vgarcia

macrumors newbie
Jan 4, 2009
1
0
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)();
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.