View Full Version : different windows opened

09-29-2003, 09:30 AM
i have so many employees id which are showing in the same page with links after click on
each of the link i have to get the information in a new window but it shold not occupi
the place of previously opened link window in this page

09-29-2003, 11:13 AM
give each link a different target name.

<script type="text/javascript">

function openPopup(url,target){
var w = window.open(url,target,'width=800,height=600');
return false;

<a href="link1.htm" target="link1" onclick="return openPopup(this.href, this.target)">Link1</a>

<a href="link2.htm" target="link2" onclick="return openPopup(this.href, this.target)">Link2/a>

<a href="link3.htm" target="link3" onclick="return openPopup(this.href, this.target)">Link3</a>