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 6583567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:25:34+00:00 2026-05-25T16:25:34+00:00

I was using the Developer Tools in Chrome 13 when I typed this line:

  • 0

I was using the Developer Tools in Chrome 13 when I typed this line:

var location = "Hello";

Upon pressing enter, the page changed and gave me a 404 error. The address bar now had Hello appended to the last address.

http://www.google.com/Hello

I swear that I have typed the exact same lines into Chrome in the past and not had the same problem. I thought location was at window.location.

Has something changed, or have I just never noticed this before?

  • 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-25T16:25:35+00:00Added an answer on May 25, 2026 at 4:25 pm

    It’s perfectly normal that the context in the developer tools would be window. Type this and see what is says. It’s probably window.

    Thus, when you type:

    var location = "Hello";
    

    You are trying to redefine a variable in the global scope that already exists. The global scope in a browser is the window object. Thus, location in the global scope is the same as window.location.

    Trying to redefine an object that already exists (by using var) is not an error in javascript. It just ignores the var declaration and does an assignment. And, assigning a string to the location object, goes to a new web page.

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

Sidebar

Related Questions

When debugging browser-based apps using Google Chrome's Developer Tools, is there a way to
I just started using the chrome developer tools for some basic html websites and
Is there a good resource on using console of Google chrome developer tools. I
Am looking into developing an iPhone native app using Titanium Developer Since this is
Having CSS layout issues with Internet Explorer 7 (big surprise). Upon using the Developer
Possible Duplicate: Bizarre console.log behaviour in Chrome Developer Tools Given the following script :
I need to block tools like Firebug and Chrome Developer Tools in a specific
Since upgrading to Rails 3.1 upgrading Chrome I've had problems using the Chrome Developer
does anybody know whether Chrome Developer Tools can format javascripts into human readable form
I developed a Windows command line tool using C, and compiled it in VC++,

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.