SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru SharifTK's Avatar
    Join Date
    Jan 2004
    Location
    New York, NY
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pop up window function now working right

    Hey, I made this function so I can use on popup windows for links:

    HTML Code:
    function open_window(url, name, width, height, toolbar, location, status, menubar, scrollbar, resizable)
    {
    var url = url;
    var name = name;
    var width = width;
    var height = height;
    var features = 'width=' +width+ ',height=' +height+ 
                   ',toolbar=' +toolbar+ ',location=' +location+ 
    			   ',status=' +status+ ',menubar=' +menubar+ 
    			   ',scrollbar=' +scrollbar+ ',resizable=' +resizable;
    
    window.open(url, name, features);
    }
    And this is me trying to use it:

    HTML Code:
    <a href="javascript:open_window('page.htm#24', 'ESRB', 500, 200, 'no', 'no', 'no', 'no', 'yes', 'no');">Learn More</a>
    Clicking on the link makes the page popup, goes to the specified anchor but NO scrollbars are present. Why?
    SK

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have scrollbar in you function, but I think it's scrollbars

    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Guru SharifTK's Avatar
    Join Date
    Jan 2004
    Location
    New York, NY
    Posts
    621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep that solved it! Thanks.
    SK


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
  •