SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    Asker, Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    window.open - fullscreen scrollbars=no

    I'm trying to open a fullscreen page using this link
    Code:
    <a class=sangnavn href="javascript:void(0);" onClick="window.open('popup.asp?sang=Let if low.txt&side=1','',' fullscreen=yes, scrollbars=no')";>Let if low</a>
    But I still gets a deactivated scrollbar on the right side, and I don't want it

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A couple of things worth reading/knowing...

    Article on 'The Perfect Pop Up' (incl. how to make the link more search engine friendly and more accessible)
    http://www.webmasterbase.com/article/955


    The 'fullscreen' window feature (...,fullscreen=yes,...)is IE only, so will not work on other browsers.
    There are also one or two other things to consider when using it.
    http://msdn.microsoft.com/workshop/a...ods/open_0.asp

    A cross-browser alternative to 'fullscreen' would be...

    Code:
    <a href="popup.asp?sang=Let if low.txt&side=1" class="sangnavn" onclick="window.open(this.href,'','scrollbars=no,height='+window.screen.availHeight+',width='+window.screen.availWidth);return false;">Link text</a>

    I can't say for sure whether or not this will cure your scrollbar problem, but if the problem is a result of using the fullscreen feature then it should be cured.

    Also, remove the spaces between the window features in your window properties string ('Xfullscreen=yes,'Xscrollbars=no').

    Also, it's worth getting into the habit of enclosing your values and class names in quotes (or apostrophes if nesting). They are becoming increasingly crucial to the predictable rendering of html and other code languages.

    Try the above code instead and let me know how you get on.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    Asker, Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i found out what was wrong
    All I had to do was to include a scroll=no in the body tag.


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
  •