tags:

views:

26

answers:

1

I have the following markup from my webpage(say test.html):

<html>
<body>
    <a id="link1" target = "_new" href="http://www.yahoo.com"&gt;Go to Yahoo</a>
    <a id="link2" target = "_new" href="http://www.google.com"&gt;Go to Google</a>
    <a id="link3" target = "_new" href="file://///server01/localWebPage.html">Go to Local webpage</a>
 </body>    
<html>

This will open a tab/window (and reuse hence the _new target) and it works when opening the webpage via File|Open|locate to test.html location. However when it's run using the web server (eg IIS). Running this via http://localhost/test.html, will not work for the localWebPage.html.

Any suggestion to make this work?

Thanks

A: 

Not sure what you want exactly but if you want to open a page in new tab/window, use the target="_blank", if however, you want it to open in the same window, just leave out the target="_blank" part from the links.

Sarfraz
Hi Sac, tried the same doesnt work. thanks
bonskijr