'How to open iframe link in new tab or window

I am using some iframe tags in my html page as shown below:

   <TABLE border="0" width="900">
    <tr valign="top">
    <td width="300" ALIGN=center>
                  <iframe src='http://www.apple.com/in/'  frameborder = 0, height=250, width = 300  > </iframe><br>

    </div>
       </td>

    <td width="300" ALIGN=center>
            <div class="item_list">
            <iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-137232779171598318'  frameborder = 0, height=250, width = 300 base target="_blank"  > </iframe></a><br>
            </div>
      </td>
      <td width="300" ALIGN=center>
            <div class="item_list">
            <iframe src = 'http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-  137232785207215857' frameborder = 0, height=250, width = 300 > </iframe>
      <br></div>
    </td>
    </tr>
     </TABLE>

Now what i need , is to open the link which is inside in iframe to new tab or window. I have used below script regarding this, but no luck.

   <SCRIPT LANGUAGE="JavaScript">

   function goNewWin() {

    //***Get what is below onto one line***

    window.open("backbuttonnewpage.html",'TheNewpop','toolbar=1,
   location=1,directories=1,status=1,menubar=1,
    scrollbars=1,resizable=1'); 

   //***Get what is above onto one line*** 

   self.close()

      }

   </SCRIPT>   

can anyone suggest me any solution for this?



Solution 1:[1]

I think you're trying to just open a new page in a new tab. If so, here is the code you need:

<a href="WebAdress.netdom" target="_blank"><button>Open New Tab</button></a>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nathaniel Ford