Click to See Complete Forum and Search --> : anchor tag linking
peteyb
07-14-2006, 05:06 AM
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?
pcthug
07-14-2006, 05:29 AM
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.
peteyb
07-14-2006, 06:33 AM
cool. thanks.
i have been using target='_new', what difference is there between this and target='_blank'?
Charles
07-14-2006, 07:00 AM
"_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.
peteyb
07-14-2006, 07:29 AM
thanks
peteyb
07-14-2006, 08:13 AM
this does not work in netscape 8. ??
Charles
07-14-2006, 08:18 AM
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.
peteyb
07-14-2006, 08:57 AM
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
Charles
07-14-2006, 09:08 AM
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 user's preference. The simple solution might be:<a href="help.html">Help</a> (We suggest that you open this link in a new window or tab.)
peteyb
07-14-2006, 10:23 AM
noted
i have found that image anchors open up a new tab in Netscape but text links do not. very wierd!!