/    Sign up×
Community /Pin to ProfileBookmark

anchor tag linking

Hey all

alot of browsers are now, or soon to be running with a tab option, instead of multiple screens.

at the moment i use target=’_new’ for a new page. how do i make the browser open a new tab. is this a setting on the browser or can we code it?

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@pcthugJul 14.2006 — No, it is not possible to force the opening of a new tab. Your best option is to set the link target as _blank (new window). As Firefox 2.0 (and various other browsers) automatically open a new tab when a _blank link is triggered.
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — cool. thanks.

i have been using target='_new', what difference is there between this and target='_blank'?
Copy linkTweet thisAlerts:
@CharlesJul 14.2006 — "_new" isn't one of the pre-defined target names with special meaning ( http://www.w3.org/TR/REC-html40/types.html#type-frame-target ). It's taken to mean a frame or window with that name. If one isn't found with that name a new one is created. "_blank" will always open a new window.
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — thanks
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — this does not work in netscape 8. ??
Copy linkTweet thisAlerts:
@CharlesJul 14.2006 — The whole openig thngs in new windows & tabs is annoying to all but the web author and browsers have been providing ways of suppressing it. Perhaps we are entering a new, beuatiful day when no browser supports new windows except those requested by the user.
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — i can understand that but in respect to my website, if a user selects the help link and a new page does not open then the user goes on to close down the page after reading the helpful information they would have to start the whole process of entering their details into my forms all over again.

granted a way round this is to register each user and send the data to SQL but then they would have to go through the whole ordeal of registering to get a quote, which theortically would explode time from 2mins to 10 mins.

phew
Copy linkTweet thisAlerts:
@CharlesJul 14.2006 — However, your users always have the option to open the page in a new window - it's usually a right click and then some option. Or, if they're tabbing through the links there's some keyboard way to open the link in a new window or tab according to the [i]user's[/i] preference. The simple solution might be:[code=html]<a href="help.html">Help</a> (We suggest that you open this link in a new window or tab.)[/code]
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — noted

i have found that image anchors open up a new tab in Netscape but text links do not. very wierd!!
×

Success!

Help @peteyb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...