Change map overlay function to open link in new window

I inherited a google map overlay that displays station icons with station name labels.  If you click on the icon, you get another label with more station information and a link to the weather station condition page. Unfortunately, the link opens in the same window as the map: to return to the map, you have to press the "back button" key in the browser, which is not user-friendly.  

I want the link to open to a new window (preferably) or tab, whatever google maps supports. Their reference page at probably answers the question but I can't find a way to apply the code in a way that works.  The function below is the one I'm trying to change.  The javascript file that it belongs to is attached - it's one of several files that we're using to make this work, but I don't think the others relate to the problem (the map and overlays show up in the html page; the labels correctly import from an xml file; the links I'm trying to open from the map labels are pre-existing html and shtml pages that reside on our server).
function stationMarker(station_name, point, icon, link) {
	var marker = new GMarker(point, icon);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("Station Name: "+station_name+"<br>Location: Lat "" Lng "+point.lng()+"<br>Link: <a href=\"http://"+link+"\">www<a/>");
	return marker;

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sara_bellumAuthor Commented:
I should mention that this problem exists for all browsers and platforms that I've tested (Linux and Windows clients with Firefox and IE, with preferences/options set to open new links in new tabs and/or windows)
Michel PlungjanIT ExpertCommented:
You mean

Link: <a href=\"http://"+link+"\" target=\"_blank\">www</a>"

Note I changed the wrong <a/> too
sara_bellumAuthor Commented:
Brilliant! I had tried the same approach earlier but made mistakes, and failed to catch the closing href error there a way to set the window size so that it appears to pop up?  I know this is beyond the scope of my original question but thought I'd try my luck :)
Michel PlungjanIT ExpertCommented:
This will handle popup blockers too:

<a href=\"http://"+link+"\" target=\"_blank\" onClick=\"var,,'width=300,heigth=400'); return (w)?false:true;\">www</a>"

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sara_bellumAuthor Commented:
Thank you so much!! On to the drudgery of checking lat/longs...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.