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 Coder
    Join Date
    Jun 2006
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Need a little help with a pop up window thingy

    Hey,

    I have a pop up window but I want to turn off the status bar at the bottom but I can't figure it out. Here is the code:

    Code:
    <script language="javascript">
    var win = null;
    function NewWindow(mypage,myname,w,h,scroll){
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings =
    'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+''
    win = window.open(mypage,myname,settings)
    }
    
    </script>
    and here is the link trigger:

    Code:
    <a style="border:none" href="http://www.mylink.com" onclick="NewWindow(this.href,'name','546','380','yes');return false"><img src="ltbutton.gif" border="0" /></a>
    How do I turn the status bar off please

    Hope you can help
    Thanks

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Code:
    var win = null;
    function NewWindow(mypage,myname,w,h,scroll){
      var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
      var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
      var settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',status=0';
      win = window.open(mypage,myname,settings);
    }
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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