[Pro] Open in other window?

I received code to use from the Better Business Bureau for a client’s website and tucked it in a mark-up item. Works fine, as shown in the included page. The only issue is that it doesn’t open in a new window, which I’d very much like it to do. Is there some place in the code I can add to the markup item to make that happen? I never like taking people off a client’s actual site.

http://www.empathycare.org


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sure. In the link part of the code, add a new attribute called target. Edit it to be like this:

<a title="lengthy title" href="lengthy url" target="_blank">

Note the leading underscore in the target value – that’s significant.

Walter

On Oct 4, 2012, at 11:48 AM, LauraB wrote:

I received code to use from the Better Business Bureau for a client’s website and tucked it in a mark-up item. Works fine, as shown in the included page. The only issue is that it doesn’t open in a new window, which I’d very much like it to do. Is there some place in the code I can add to the markup item to make that happen? I never like taking people off a client’s actual site.

http://www.empathycare.org


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you so much, Walter. All is well in my world again, thanks to you.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Good point Walter.

In HTML5 (XHTML 1.0 strict) the target=_blank is disabled (thrown out?). For a couple of reason I can understand why - on the other hand I like it, but only for links that are “leaving” my page. Am I telling something wrong and would do you think about?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I feel personally that you (the page author) do not have control over my (visitor) browser. So I actually like the removal of target for this use-case. If I choose to invoke my browser’s command to “open link in a new tab”, then that’s my choice, not yours, to make. However, the restriction of target has been removed from HTML5, and that’s the future, not XHTML, so it appears I have been in the minority all along (no great surprise to me).

The primary issue with target=“_blank” is one of usability. That new window does not carry any history forward from the window that spawned it, and on Windows computers, the default is to open a browser window full-screen, so you don’t even have a visual clue that a new window was opened. You try to go back to the previous page (because there wasn’t any warning that you were going to open a new window) and you can’t. Back is “broken”. Only if you are clever enough to look through the tabs along the bottom of your window, and see the previous page there among the hundreds of squished icons, will you ever find your way back.

Walter

On Oct 8, 2012, at 10:25 AM, Thomas Kimmich wrote:

Good point Walter.

In HTML5 (XHTML 1.0 strict) the target=_blank is disabled (thrown out?). For a couple of reason I can understand why - on the other hand I like it, but only for links that are “leaving” my page. Am I telling something wrong and would do you think about?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options