ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

html/javascript help pls.. OpenNewWindow



  Suzuki SV650
How can I alter the script below that is part of my travelling blogger, so that if someone clicks on a link, it automatically opens the link in a new window, rather than in the same one or without them having to 'right click & open new window' all the time?

The page (http://steviepee.blogspot.com) is a template that is automatically done by the website (http://blogger.com), but I have tweaked the html a lil' to include the links, but how do I get them to open up in a new window..?

Code:
        <MainOrArchivePage>
  <h2 class="sidebar-title">Links</h2>
    <ul>
    	<li><a href="http://steviepee.smugmug.com/">My Smugmug (Picture Gallery)</a></li>
    	<li><a href="mailto:steviepennack@gmail.com">eMail Me</a></li>

	<li><a href="http://www.reesusa.blogspot.com/">Cousin Mich & family in the U.S. of A!</a></li>

    	<li><a href="http://getjealous.com/ruthandhannah">Get Jealous of Ruth & Hannah</a></li>

         <li><a href=http://www.tonysmix.com/Mixes/>Tony's Funky House Mixes</a></li>

         <li><a href="http://project-white-star-5-turbo.blogspot.com/">Dan's 5GTT Project</a></li>
  </ul>
  </MainOrArchivePage>

There might be an alternate way of doing this, but from what I can see (which isn't much tbh), this is the mainstream way of doing stuff.. Can anyone help?

Steve.
 

Red Cup

ClioSport Club Member
  Focus RS
Don't do it. Let the user decide if they want a new window or not:

http://www.useit.com/alertbox/990530.html

Jakob Nielson said:
Opening up new browser windows is like a vacuum cleaner sales person who starts a visit by emptying an ash tray on the customer's carpet. Don't pollute my screen with any more windows, thanks (particularly since current operating systems have miserable window management). If I want a new window, I will open it myself!

Designers open new browser windows on the theory that it keeps users on their site. But even disregarding the user-hostile message implied in taking over the user's machine, the strategy is self-defeating since it disables the Back button which is the normal way users return to previous sites. Users often don't notice that a new window has opened, especially if they are using a small monitor where the windows are maximized to fill up the screen. So a user who tries to return to the origin will be confused by a grayed out Back button.
 
useability? Stuff of the past. Cram as many pop-ups, pop-unders, adds, flash adds (now they really irritate me coz for some reason flash really kills firefox on my laptop), frames, iframes, and general crap on possible :(
 
  Suzuki SV650
Thanks for the replies guys, I never knew I'd be opening a can of worms on new windows when I started this.
 


Top