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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:04:16+00:00 2026-05-26T21:04:16+00:00

I am trying to get window A (on our domain) open window B (another

  • 0

I am trying to get window A (on our domain) open window B (another domain, like YouTube) and I want to show the current document location of window B in window A.

As an example, here is some of the code I am using:

var popup;
var popupRelay;

function findPopupURL(){
  var loc=popup.document.location.href
  $('#popuploc').html(loc);
}

function clickPopupLink(){
  var windowProperties='height:500,width:1000,location:1,toolbars:0';//etc etc
  popup=window.open('http://www.youtube.com/','popup',windowProperties);
  popupRelay=setInterval(findPopupURL,1000);
}

This code generates this error however:

Error: Permission denied to access property 'document'

Unfortunately the work arounds I keep finding requires me to put code on both domains, which is obviously not possible if Im opening somewhere like YouTube.

What I want to know is, is there a way of getting the document location from another window showing another domain? Can it be done at all? And if so, how?

  • 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-26T21:04:17+00:00Added an answer on May 26, 2026 at 9:04 pm

    No, it is not possible to spy on what people do on other domains. That is exactly why the Same Origin Policy exists.

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

Sidebar

Related Questions

I'm trying to get the location of Window's Local AppData folder in a version-agnostic
I am trying to get the window handles to a Delphi application from an
I am trying to get the handle of a window from a process. Now,
I'm trying to get the name of the executable of a window that is
I'm trying to get every widget to scale with change in window size. I
I'm trying to get the height of a html window's content. This is the
I'm trying to get a handle to the foreground window in C#/Net 2.0/WinForms by
I'm trying to use window.getSelection to get a string but it's returning an object.
I am trying to change the Default NT Domain on our Crystal Enterpise Server
Whilst trying to get our app working in Firefox (I'm a big proponent of

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.