SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prevent scrolling......

    hello friends,

    i want to disable scrol in frameset page........

    example:
    <frameset rows="27%,70%,*">
    <frame src="head.html" name="head">
    <frameset cols="30%,70%>
    <frmae src="navigation.html" name="navigation">
    <frame src="content.html" name="content">
    </frameset>
    <frame src="logo.html" name="logo" scrolling="no">

    i want to disable scroll in logo.html page............
    if i give scrolling="no" it only hides scroll bar........ but i want to avoid scrolling in my pag......
    pls help me......
    Thanks in advance

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code javascript:
                window.onscroll = function() {
                    window.scrollTo(0,0);
                }

    The above will reset the window to the top when ever you try to scroll the page.


  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it is not working in firefox.....................


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
  •