SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: pop up problems

  1. #1
    Technically, a bit dim macdan's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey there

    I'm using this script for a pop up window:

    function windowOpener1() {
    window.open('' ,'win1' ,'toolbar=no,location=no,scrolling=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=420,height=300,top=20,left=20');

    }

    and calling it:

    <a target="win1" href="page.htm" onclick="windowOpener1()">

    Problem is it is unreliable - sometimes it opens correctly and other times it will open in another size, seems to inherit other pop up window sizes. Any ideas - is there anything obviously wrong with it?

    Thanks for your help
    gorillaweb is a small London based digital design agency.

  2. #2
    SitePoint Addict
    Join Date
    Oct 2000
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try giving it a url in the first pair of single quotes.

    Some versions of Netscape will also often inherit the characteristics of a popup that is launched from another popup.

    And if you really hate doing popup code manually, www.CodeLifter.com offers a tool to make them for you...
    Last edited by etLux; May 13, 2001 at 06:23.

  3. #3
    Technically, a bit dim macdan's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers etLux - I take it I don't need to refer to that name when I call the function - just arbitary? Will give it a try.

    Thanks
    gorillaweb is a small London based digital design agency.

  4. #4
    SitePoint Addict
    Join Date
    Oct 2000
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm embarassed to say I erred entirely in that post above -- which I just corrected. Sorry... not enough, er, java when I replied... lol.


Bookmarks

Posting Permissions

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