473,652 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

target-new:tab

I want to make a page open a link in a new tab when the user clicks
it. Doing some browsing and experimentation , I found that this code:

<a href="myDocumen t.html"
target="new"
style="target-name: new; target-new:
tab;"my document </a>

works in Firefox 2 but not in IE 7.

Is there another way to do it that will work across at least these two
browsers? Or is it something that's not supported and that I would be
better off not trying? Thanks.
Jun 27 '08 #1
3 9029
mitch wrote:
I want to make a page open a link in a new tab when the user clicks
it. Doing some browsing and experimentation , I found that this code:

<a href="myDocumen t.html"
target="new"
style="target-name: new; target-new:
tab;"my document </a>

works in Firefox 2 but not in IE 7.

Is there another way to do it that will work across at least these two
browsers? Or is it something that's not supported and that I would be
better off not trying? Thanks.
Asked a million times, conservative estimate. Answer is No. You can
neither force a new tab or a new window. It is a user setting. Work in
*your* Firefox only because *your* Firefox is set to open new windows in
a new tab. My SeaMonkey can be set to open all new windows in my
existing window thus nullifying the action entirely...

Basically it is bad form to open a link in a new window or tab on a
user, let them make that decision:

http://www.useit.com/alertbox/9605.html
Top Ten Mistakes in Web Design (Jakob Nielsen's Alertbox)
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #2
Thanks. I did search, with google on the web and again inside this
group, before asking.

- Mitch
Asked a million times, conservative estimate. Answer is No. You can
neither force a new tab or a new window. It is a user setting. Work in
*your* Firefox only because *your* Firefox is set to open new windows in
a new tab. My SeaMonkey can be set to open all new windows in my
existing window thus nullifying the action entirely...

Basically it is bad form to open a link in a new window or tab on a
user, let them make that decision:

http://www.useit.com/alertbox/9605.html
Top Ten Mistakes in Web Design (Jakob Nielsen's Alertbox)

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorks Studio.com
Jun 27 '08 #3
mitch wrote:
Thanks. I did search, with google on the web and again inside this
group, before asking.
Really? Not sure I believe you. If you had, you would also learn about
not top posting in Usenet and trimming signatures, and lastly that new
window|tab is a browser user setting and that has been asked and
answered countless times here.

[Your reply should go below this]
>Asked a million times, conservative estimate. Answer is No. You can
neither force a new tab or a new window. It is a user setting. Work in
*your* Firefox only because *your* Firefox is set to open new windows in
a new tab. My SeaMonkey can be set to open all new windows in my
existing window thus nullifying the action entirely...

Basically it is bad form to open a link in a new window or tab on a
user, let them make that decision:

http://www.useit.com/alertbox/9605.html
Top Ten Mistakes in Web Design (Jakob Nielsen's Alertbox)
[and you should trim this when you use GG instead of a newreader]
>--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorks Studio.com

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
6707
by: Dave | last post by:
Hello, I have written a website www.pusspaws.net, my problem is in the gallery section. I have coded ... <object type="text/html" data="galleryobj.html" border="0" width="422" height="325"></object><br> to make a scrolling window (Or is it a frame with an <object> tab ?),
36
3957
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that you're still in the same browser, but the Back Button no longer works. I've done some experimentation and came up with the conclusion that Microsoft's IE browser has a relatively small likelihood of that happening, but that Netscape's browsers...
22
26842
by: Mark Reginald James | last post by:
Hi, I'm trying to use a keyboard event function to change what element gets the focus after tab is pressed in a particular element. Simple HTML that demonstrates the problem is below. When tab is pressed in the second input box I want focus to move to the first. It does this in IE, but not Mozilla 1.7.10. I can make it work in Mozilla by changing the event from onkeydown to onkeypress, but then it doesn't work in IE. Is there any
3
4138
by: Joshua Ammann | last post by:
Hi, (Using Access 2000) I have two tables, similar to Customers and Orders. (Not an exact parallel, but works for this example.) On a form showing customer data, there is a tab control. One of the tabs has a subform showing order data (in datasheet view). On the same tab there is an unbound textbox (next to the datasheet). I placed a
11
15002
by: gopal srinivasan | last post by:
Hi, I have a text like this - "This is a message containing tabs and white spaces" Now this text contains tabs and white spaces. I want remove the tabs and white spaces(if it more than once between two words). Is there any function we have in C which will find out the tabs and white spaces and returns the text in the follwong way -
3
4166
by: aryayudhi | last post by:
I have a html page that has javascript that works perfectly in IE, but not in Firefox. The use of this javascript to change "Tab" to "Enter" Button. When we press Tab, it is like when we press Enter button. How to make this script can be run on Firefox? I would be grateful to anybody who can help me on this, as I have got out of my depth with this problem. Thanks, Arya ======== This is the script : <script language="javascript"...
9
24423
by: =?Utf-8?B?Sm9ubw==?= | last post by:
I've developing on xp64, and from a couple other topics I'm supposed to change my target platform to X86 if i wanna do some specific 32bit stuff. However, the option is supposed to be in Project properties - build tab... but it's not there, where did it go? Do I have to do something specific to my project for it to show? Thanks
1
1554
by: jmcgranahan | last post by:
First, a disclaimer: I am a librarian by trade, but have the responsibility of maintaining/updating our online catalog. I've dealt with some JavaScript before, but I am no expert, so please forgive my ignorance. Question: Our automation system creates information dynamically for us. In one particular area of our page, it is adding a target=_self attribute that I believe is causing problems with our attempt at making a tab display. My...
3
3631
by: mumebuhi | last post by:
Hi, How do you make an element (e.g. <div>) to receive focus when pressing TAB key? I understand that some elements such as <selectand <input> by default will receive focus when the TAB key is pressed. Is there a way to tweak a <divto get the same treatment? Thank you.
14
3414
by: govind73 | last post by:
Hi all, I would like help on the following problem. I would like to create a form that will have two drop downs (combo or list box), one of which will be a row and the other will be a column. The column values will be a count based on each row value. I've reproduced an example from the Northwind data below. Basically, I would like someone to be able to select one variable (field) and then another to compare and hit SUBMIT and generate a...
0
8370
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8704
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.