No replies
Anju Baby
Anju Baby's picture
Offline
newbie
Bangalore
Last seen: 7 years 15 weeks ago
Bangalore
Timezone: GMT+5.5
Joined: 2013-03-13
Posts: 2
Points: 3

I have a fixed pop up window in my code from this i had given a link, its opening in new window. once the new window is opened i need the pop up should close automatically.
can any one help me.

please see the code below.

  <td  align="center" valign="top" class="style1">
                      <a href="http://www.syratron.com/"target="_blank"><img src="images/Logo/syra.jpg" border="0" width="170" alt="Click here for more info.." id="dai"></a> <div id="dialog" title="Syratron Technologies Pvt Ltd ">
                      <div  style="height:300px; overflow:scroll">
<table width="100%" cellspacing="0" cellpadding="4" border="1" style="border:#F93"><tr><td  align="center" valign="top"><div style="padding-left:10px; padding-top:10px; padding-bottom:10px;"><strong>Country</strong></div></td><td  align="center" valign="top"><div style="padding-left:10px; padding-top:10px; padding-bottom:10px;"><strong>Company</strong></div></td><td  align="center" valign="top"><div style="padding-left:10px; padding-top:10px; padding-bottom:10px;"><strong>Product Range</strong></div></td></tr><tr><td  align="center" valign="top">
<img src="images/country/india.jpg" width="38" height="20" alt="INDIA"></td><td  align="center" valign="top">
<a href="http://www.syratron.com/" target="_blank">
	<img src="images/Logo/syra.jpg" width="170" border="0" alt="Syratron Technologies Pvt Ltd "></a>
   </td> 
 
<td  align="center" valign="top"><div align="justify" style="padding-left:5px; padding-top:5px;padding-right:5px;padding-bottom:5px;"
><p style="font-size:18px">Syratron Solar Based Products:</p>
</p>
<p><a href="http://www.syratron.com/products/Solar%20Based%20home%20Lighting%20Solution.pdf" onclick="window.open('http://www.syratron.com/products/Solar%20Based%20home%20Lighting%20Solution.pdf','popup','width=700,height=600,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" >Solar Based home Lighting Solution</a><br/><br/></p><p>
 
 
 
</div></td>
                  </tr>
                </table>
              </div>
            </div>
            </td>

//mod edit: When posting source code, please use the "code" button or bbcode tags, [code][/code], to wrap the source. Fixed ~gt