+ Reply to Thread
Results 1 to 3 of 3

Thread: Javascript Help

  1. #1
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Javascript Help

    I am working with dhtml Popups on my site and i have been trying to figure out how to disable the scrollbar using javascript. I am able to do it properly in all browsers except IE the code im using is below. If anyone can help with this it would be greatly appreciated.


    Code:
      document.body.style.overflow="hidden";
    If there is another line of code that would do the same please let me know.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Javascript Help

    It's probably the <html> element. IE does weird stuff with it. Try adding:
    Code:
    document.body.parentNode.style.overflow='hidden';
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    apoorav's Avatar
    apoorav is offline x10 Sophmore apoorav is an unknown quantity at this point
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    110

    Re: Javascript Help

    Try to learn tutorials from w3schools.com
    If you feel my post is usefull then click on to give me Reputation

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 08-17-2008, 01:46 AM
  2. Making a site JavaScript dependent - pros/cons?
    By Tarzan in forum Programming Help
    Replies: 8
    Last Post: 07-11-2008, 10:08 AM
  3. drop down menus with JavaScript disabled?
    By sifaka in forum Free Hosting
    Replies: 1
    Last Post: 05-15-2008, 10:46 AM
  4. javascript and external javascript files problem
    By delon in forum Programming Help
    Replies: 6
    Last Post: 04-27-2008, 12:41 AM
  5. XML and Javascript
    By cuteboytm in forum Graphics & Webdesign
    Replies: 1
    Last Post: 09-21-2007, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers