New Topic Reply Subscription Options |
Open link in new tab
Forums: Questions and Answers About Building Your Site | |||
|
|||
Participant: Log in to see names |
Friday, June 24, 2011 at 1:31 PM
Is there a way to make a link open in a new browser tab?
|
||
|
|||
Participant: Log in to see names |
Friday, June 24, 2011 at 1:43 PM - Response #1
Yes. There are various methods. Easiest is THIS link More ways HERE it has code for popup that will generate the code for you HERE. This is all for YOUR links, not for CC menu links.
|
||
|
|||
Participant: Log in to see names |
Friday, June 24, 2011 at 2:06 PM - Response #2
I believe from reading his question that he's wanting a new browse Tab not a new window. Tom, As far as I know html only allows to open up to a new window on a link by Target=_blank". Users usually have tab control under Internet Options to turn it on or off. It looks like in CSS3 that you'll be able to http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/
|
||
|
|||
Participant: Log in to see names |
Friday, June 24, 2011 at 2:37 PM - Response #3
Look at the 3rd link to show how Javascript creates NEW windows. Handy for standing out/special attention. Click on the preview "test" to see how it looks. It's pretty straightforward. This can't be controlled by any browser setting. The new "Tab" system does control the html way. Assuming the user has a newer browser, they all open tabs now vs windows (maybe I changed IE setting?) so that should work for him. That was an amazing improvement. By Firefox I think??
|
||
|
|||
Participant: Log in to see names |
Saturday, June 25, 2011 at 8:00 AM - Response #4
Thanks, a window actually is just as good as a tab for my application. Tom
|
||
|
|||
Participant: Log in to see names |
Saturday, June 25, 2011 at 9:33 AM - Response #5
Tom Homsley wrote: Is there a way to make a link open in a new browser tab? Tom, I think this is a browser setting choice. (Whether new windows will open as a new tab or a new window.) So the choice is up to your visitor. To force it to be a new window, I think you would have to specify a pop-out. No doubt JavaScript could bypass this limitation.
|
||
|
|||
Participant: Log in to see names |
Saturday, June 25, 2011 at 1:33 PM - Response #6
Most newer browsers with Tabs give a choice. And then for some, it's not a default. For example, IE8 - which is still commonly used for XP systems. Most users do not know how to change to Tabs (FWIW: The term "New Window" still applies in either case. It's more a matter of how to access the "window".) The example links I gave above show exactly how to do either one - html or script (May not be obvious, but window.open shown implicitly is javascript, even if it there's no "script" wrapping). There are some additional things one can do to position the window with javascript. IE9 has a few issues with some variations - will not work with THIS example - yet I have something almost identical and it works? Also different browsers may interpret variations differently - all done to annoy us )
|
||
|
|||
Participant: Log in to see names |
Saturday, June 25, 2011 at 11:44 PM - Response #7
Tom Homsley wrote: Is there a way to make a link open in a new browser tab? Here's an easy way! After you have created your link, click on it to edit the link. Then when the edit window comes up click on the "Target" tab. In the Target drop down window click on "New Window(_blank)". Then save it. Now when that link is clicked it will open in a new tab on your browser. Jim
|
||
|
|||
Participant: Log in to see names |
Tuesday, April 9, 2013 at 10:42 AM - Response #8
Jim Persing wrote: Here's an easy way! After you have created your link, click on it to edit the link. Then when the edit window comes up click on the "Target" tab. In the Target drop down window click on "New Window(_blank)". Then save it. Now when that link is clicked it will open in a new tab on your browser. Jim Ha! Thanks, Jim!!! I had never noticed that tab option before. I have always edited the source code. Cool option... Thanks CC Design Team!
|
||
|
New Topic Reply |
Subscription Options: Have all new forum posts sent directly to your email. |
Subscription options are available after you log in. |