But it’s weird this has to be a fight at all. I get the “I don’t want to pick this fight” thing, since we only have so much energy. A Bad Reason: My client wants it that way For starters, using the download attribute. If you want to help users download it without actually opening it, that’s a worthy UX goal but can be approached differently. Why should that be so different? You can still use the back button to come back from it. I’ve heard from a lot of people that this is “a convention.” As in the way it’s supposed to be done. You understand that normal style links are ideal, but if that means a user leaves your site, you’re willing to break that ideal. This is related to the above two reasons, only perhaps worse. We’ll have “internal” links (links that point to our own site) behave normally, but “external” links (links that point to other sites) open in a new window/tab. A Bad Reason: “Internal” links and “External” links are different. Our site is more important and should never be left behind. Other sites should have normal-style links, but our site is special. A Bad Reason: Just because you want users to never leave your page.īranding branding branding! Eyeballs baby. That also means that if you like opening new tabs, you can, and you don’t have to impart that behavior on anyone else.īy using target="_blank", only that behavior is available. That means both behaviors are available to them for links. It is also worth noting that users can force a link to open in a new window/tab by -clicking a link. If other people use the site, leave it be. If it’s an internal tool just for you, do whatever you want. And thus less comfortable with your forcing of a different behavior. That’s wonderful for you, but it is safe to assume most users are most comfortable with the default behavior. Perhaps you’ve developed a personal taste for opening all links in new windows/tabs. Links opening within the same page is the default behavior (as if the link had target="_self" on it). Like it or not, target="_blank" is a change in default behavior. But are there good reasons to do so?Ī Bad Reason: Because you like it that way. This used to be “invalid” in HTML (maybe only XHTML?) but people used it anyway since it worked. One of the possible values of that attribute is _blank, which tells the browser to open a new window (or tab, if that’s the user’s preference) when that link is clicked. Anchor links 1 may have a target attribute which controls what happens when that link is clicked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |