SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable Arrow Keys Scrolling Page

    How can I make it so that when the up and down arrows are pressed, my page doesn't scroll? I noticed that in IE when an absolutely positioned div has focus, the page doesn't scroll, but the same is not true in Firefox. I tried giving the focus to a hidden IFrame, but that hasn't helped.

    Does anybody have any wisdom for me? Thanks!

    Trevor

  2. #2
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got the effect I wanted by putting a "hidden" textbox in the page and then giving that textbox the focus. Can anybody forsee problems that might arise from this? It works in Firefox and IE.

    Trevor


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
  •