Location of another document

thaimin
thaimin used Ask the Experts™
on
In Javscript and VBScript you aren't allowed to access a document's location if it is on another server. Is there anyway that I can get the other document's location, maybe using the history or a server side program.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If u r thinking of retrieving a documents location on another server, it is not possible without extreme hacking. U can get the location of the document what is normally available by browsing.
Top Expert 2013

Commented:
You cannot access anything within a page from a different domain using scripting.

Cd&

Author

Commented:
Are you positive? It seems too protective.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Commented:
COBOL is right, and I don't think it is too protective.

All the author of a site would have to do would be to launch a popunder and then they would be able to track every single site the user visits in the window that spawned it!

I wouldn't be surprised if that would also let the site author read sensitive information entered in to forms on other sites - such as credit card data.

Author

Commented:
I guess your right, I didn't think about it that way, but I have now found away around needing the location.
Commented:
Sesnitive data is the very reason, rather than tracking where you have been. Imagine a hidden frame that loaded into the visible frame the home page of your bank. You merrily type in your username and password and the hidden frame grabs it and sends it back to the culprit.

Commented:
And your reason for a B would be?

Author

Commented:
Um...well, I guess the answer given was very good, it's just that I had found the answer to my question by that time.

Commented:
Please read the tips on comments and answers.
A request for a grade change has been made.  We value our experts highly for taking the time to answer user's questions. If the expert's answer was sufficient to solve the problem then we ask that they be given the highest grade of an 'A'. If more info, was needed then a 'B' but only following an explanation for it. Please see here for info on grading questions: http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3

Thank you for your interest in Experts-Exchange

Computer101
E-E Admin
Grade changed

Computer101
E-E Admin

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial