hurting101 Posted March 16, 2002 Share Posted March 16, 2002 How can I make links open in a different already open window? EG: When you search with the "Search" button in IE, when you click a result it opens in the main window. How do I do this? PS - I'm trying to do it with the "Tip of the Day" explorer bar) Thanks. EDIT: It's a javascript bookmarklet too, if that makes a difference. Link to comment Share on other sites More sharing options...
0 skooter Posted March 16, 2002 Share Posted March 16, 2002 target="_blank">text Link to comment Share on other sites More sharing options...
0 hurting101 Posted March 16, 2002 Author Share Posted March 16, 2002 That opens it in a new window, not one that's already open. Thanks anyways. :) Link to comment Share on other sites More sharing options...
0 Gumboot Posted March 16, 2002 Share Posted March 16, 2002 window name">text where window name is the name you used when opening the window (the second parameter of window.open()). Link to comment Share on other sites More sharing options...
0 mariusu Posted March 16, 2002 Share Posted March 16, 2002 the most important thing is "target". it could be eg.:_blank(opens in new window), _top (in the same window), _self(same window), _parent (parent frame), or just a window name. you can name windows when you define frames. just as gumboot said:D Link to comment Share on other sites More sharing options...
0 skooter Posted March 17, 2002 Share Posted March 17, 2002 oh sorry mate didn't read :roll: text _main is the name of the main part of the window Link to comment Share on other sites More sharing options...
0 hurting101 Posted March 17, 2002 Author Share Posted March 17, 2002 Originally posted by skooter oh sorry mate didn't read :roll: text _main is the name of the main part of the window That doesn't seem to work with javascript. Not sure why. It types the URL in the address bar and gets a 404, but doesn't actually run the javascript. But it does work for pages. EG: .tagName==]hi" target="_main">text Link to comment Share on other sites More sharing options...
0 skooter Posted March 17, 2002 Share Posted March 17, 2002 change it to javascript instead of java script i have no idea exactly what you want to do :ponder: Link to comment Share on other sites More sharing options...
0 Gumboot Posted March 17, 2002 Share Posted March 17, 2002 hi" target="_main">textI guess it... switches the background colour of every link on the page from yellow to the background colour of the document and vice versa. :rambo:Am I right? Do I win a prize? :D Link to comment Share on other sites More sharing options...
0 hurting101 Posted March 17, 2002 Author Share Posted March 17, 2002 Originally posted by Gumboot I guess it... switches the background colour of every link on the page from yellow to the background colour of the document and vice versa. :rambo: Am I right? Do I win a prize? :D Kinda. Hilights all links :p www.bookmarklets.com Link to comment Share on other sites More sharing options...
0 Unique Touch Posted March 18, 2002 Share Posted March 18, 2002 Any ideas of what the php code is to make a link open a new window? Check my website out (the right hand side - "latest forum posts". When you click on a post it opens in the same frame, i want it to open a new broswer window though like target="_blank" does. Cheers Link to comment Share on other sites More sharing options...
0 Gumboot Posted March 18, 2002 Share Posted March 18, 2002 Umm, it opens in a new window for me... Link to comment Share on other sites More sharing options...
0 Unique Touch Posted March 18, 2002 Share Posted March 18, 2002 @ Gumboot Yeah, I just fixed it hehehehe same as html for php - just added target="_blank" cheers Link to comment Share on other sites More sharing options...
0 hurting101 Posted March 18, 2002 Author Share Posted March 18, 2002 Here's what I'm talking about: http://www.imagestation.com/mypictures/inb...&caption=tipbar Link to comment Share on other sites More sharing options...
Question
hurting101
How can I make links open in a different already open window?
EG: When you search with the "Search" button in IE, when you click a result it opens in the main window. How do I do this?
PS - I'm trying to do it with the "Tip of the Day" explorer bar)
Thanks.
EDIT: It's a javascript bookmarklet too, if that makes a difference.
Link to comment
Share on other sites
13 answers to this question
Recommended Posts