Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    different windows opened

    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    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');
    w.focus();
    return false;
    }

    </script>
    ...
    <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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •