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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:20:41+00:00 2026-05-24T02:20:41+00:00

this one is really giving me a headache: using javascript (let’s say on page1.html)

  • 0

this one is really giving me a headache:

using javascript (let’s say on page1.html) i use code similar to below to launch a new window:

var popwindow = window.open("http://www.stackoverflow.com");

i then pass the popwindow variable to a function that uses setTimeout to repeat every 3 or 4 seconds (this part is not too important i do not think). what this little looping code does is (supposed to) check the location object of the popup window to see when the url changes and contains some certain query string variable.

for the most part, this is working; the code repeats, and using firebug, i can see that the window object is getting passed as it should.

my issue though is that whenever i try to do any access to popwindow.location.href or popwindow.location.search, javascript crashes. i even simply tried to do a popwindow.location.toString() to get this stuff out myself, but that crashes as well.

when i use firebug, i can see that the location object that i am trying to access is a legit location instance; firebug allows me to browse the location object’s fields when i have the scripts paused. however, when i try to access these things (i am not writing to them, only reading the values) it will never work… in case it is helpful, i am using the latest version of firefox (5.0 i believe).

  • 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-24T02:20:42+00:00Added an answer on May 24, 2026 at 2:20 am

    If the referenced window is not on the same domain as the window that the script you’re running is in, then the browser won’t let you access cross domain windows. It will throw an exception.

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

Sidebar

Related Questions

Boy, this one is really weird. I expect the following code to print 1990,
Ok, this one is really weird... I can't show code for it exactly cause
I have a solution that I use but that one is not really giving
this one is really easy. I'm trying to create a Regular Expression that will
Probably a really simple one this - I'm starting out with C# and need
I'm really frustrated with this one. A few weeks ago I got it working
I'm really stumped by this one! The StackFrame object ( MSDN Link ) has
I really need help on this one. I am having a simple login form
Really ripping my hair out on this one. I have a JAAS Authentication Provider
I'm not really sure how to google this one . I would like to

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.