Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open in new window?

Status
Not open for further replies.

straybullet

IS-IT--Management
Jun 5, 2003
593
US
have the following:
Code:
function linkDisplay() {

  var links = new Array();
    links[0]="View Your Report";
    links[1]="Home Page";
    links[2]="Why Choose A2Z?";
    links[3]="Services";
    links[4]="View Sample Report";
    links[5]="FAQ";
    links[6]="Standards of Practice";
    links[7]="Code of Ethics";
    links[8]="3 Mistakes to Avoid";
    links[9]="Request Information";
    links[10]="Free Home Hints";
    links[11]="Useful Links";
    links[12]="Email Us";

  var linkURL = new Array();
    linkURL[0]="hglogin.htm";
    linkURL[1]="index.htm";
    linkURL[2]="why.htm";
    linkURL[3]="services.htm";
    linkURL[4]="[URL unfurl="true"]http://www.homegauge.com/report/347961/";[/URL]
    linkURL[5]="faq.htm";
    linkURL[6]="sop.htm";
    linkURL[7]="coe.htm";
    linkURL[8]="mistakes.htm";
    linkURL[9]="contactmain.htm";
    linkURL[10]="homehintsreq.htm";
    linkURL[11]="links.htm";
    linkURL[12]="mailto:chris@a2zpa.com";

  for (i=0; i<links.length; i++) {
    document.write("<ul>"+links[i].link(linkURL[i])+"</ul>");
  }
}

As you can see, only link [4] is "external". How do I make it open in a new window?

tried:
linkURL[4]=" "target="_blank"";
linkURL[4]='" "target="_blank"';
linkURL[4]="" "target=_blank"";

and several other variations with no success - there has to be a way... [dazed]

Thank you

Let them hate - so long as they fear... Lucius Accius
 
Thank you for looking, but please disregard this post. I'd have deleted it if I could.

Let them hate - so long as they fear... Lucius Accius
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top