Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7508947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:46:27+00:00 2026-05-29T22:46:27+00:00

I am using jquery_and_timers.js. But when i try to run my webpage. It gives

  • 0

I am using jquery_and_timers.js. But when i try to run my webpage. It gives following error:
Line: 16
Error: ‘body’ is null or not an object

Here is the error line:

return Math.max(f.documentElement["client" + c], f.body["scroll" + c], f.documentElement["scroll" + c], f.body["offset" + c], f.documentElement["offset" + c])

Can anyone tell how to fix this?

** I think this is where it is happening:
I call a method

loadIframe() from $(document).ready(function () {... 

function loadIFrame() {
        $("#toggleStyle").attr("href", "style/la.css");
        $('#Src').insertBefore('#togg');
        $("#inf").attr("src", "images/inf.png");        

}

It is when this method loadIframe is called it gives that error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:46:28+00:00Added an answer on May 29, 2026 at 10:46 pm

    There’s really not enough code in your question, but since the error is about body, and not about documentElement, I’m guessing f is document, and you’re running the code before the DOM is ready.

    You can run the code after the DOM is ready by placing it in a handler passed to jQuery’s .ready() method.

    $(document).ready(function() {
    
        // your code
    
    });
    

    Or if in spite of the jQuery tag you’re not using jQuery, just place your script just before the closing </body> tag…

    <body>
    
        <!-- your HTML -->
    
        <script>
            // your script
        </script>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following code to try to play a sound clip with the
I try to browse a select with jQuery and using each function but my
UP-FRONT NOTE: I am not using jQuery or another library here because I want
I'm using Jquery and Jquery UI with the following: $(document).ready(function() { $('#tabvanilla > ul').tabs({
I have just started using jQuery and although following code gets the job done,
Basically I am using jQuery ui's selectable functionality on a ul , but the
I'm making a horizontal scroller using jQuery. I have it working using the following
I am using jQuery load() function to load some pages into container. Here is
I'm building a simple slideshow using jQuery. I have the basics down, but as
This is probably intended behaviour or atleast not a jQuery / js issue but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.