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

  • SEARCH
  • Home
  • 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 9179475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:48:22+00:00 2026-06-17T17:48:22+00:00

I an trying to debug why a script isn’t working in firefox but is

  • 0

I an trying to debug why a script isn’t working in firefox but is in other programs. Part of the excellent chirp.js has the line:

script = document.scripts[document.scripts.length-1]

Which throws the error: document.scripts is undefined

So I run document.scripts in the firebug console and it returns undefined, as you would expect, so I head over to Mozilla and see if it’s called something else and it’s listed there as being accessible. I type the same thing into the Chrome console and I get a list of scripts loaded.

This happens on my machine and my client’s too, so I’m guessing it’s not a plugin/addon issue?

I get the same error on the chirp project page.

Anyone come across this issue before? I tried googling, but get pages of results relating to the document.scripts object and no problems.

  • 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-06-17T17:48:23+00:00Added an answer on June 17, 2026 at 5:48 pm

    Something else isn’t right here. Even writing the following will give you a length of 1:

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <script>alert(document.scripts.length);</script>
    </body>
    </html>
    

    Try that in your Firefox installation. If that works then something else is wrong.

    Note: I tested it in the latest version of Firefox for Mac as of 1/23/13.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to debug a JavaScript script that gets read in a Firefox
I'm using Firefox as my default browser and I'm trying to debug java script
I'm trying to write a debug script to test my cookies, but for some
I am trying to debug my jQuery(Tools) script that is not working on IE.
Got a script which Im trying to debug but I cant figure out the
I'm trying to debug my first R script and I came across this line:
I'm trying to debug a cons script, and the problem I'm having is that
I am trying to use NuSoap in PHP 5.3. When I debug my script
I'm trying to debug this problem but not sure where exactly i need to
I am working on a PHP script locally that has a bug in it

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.