View Full Version : Resolved This "_target" is not working and I can't see why?
12-22-2010, 11:15 AM
This code works well, the value of "Val" is a web address but I want it to open to a new window or tab.
document.getElementById('SelectedResult').innerHTML="<font size=2><a Href=" + Val + "target='_blank'>" + Val + "</a>"
12-22-2010, 11:57 AM
You must include a space in front of target:-
document.getElementById('SelectedResult').innerHTML="<font size=2><a href=" + Val + " target='_blank'>" + Val + "</a>"
Otherwise the link is
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
12-22-2010, 02:29 PM
Thank you, that is very helpful.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.