Closed Thread Icon

Preserved Topic: Accessing other windows Pages that link to <a href="https://ozoneasylum.com/backlink?for=18133" title="Pages that link to Preserved Topic: Accessing other windows" rel="nofollow" >Preserved Topic: Accessing other windows\

 
Author Thread
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-29-2001 11:03

Hello.

I have something like this:

quote:
w1 = window.open('http://www.altavita.com', 'win_alta');
setTimeout('alert(w1.document.title)', 5000);
or even:
setTimeout('alert(w1.document.forms[0].elements[0].name)', 5000);


by this code i'm getting Access denied!
can't I access other window's fields or objects?
Like i want to open altavista and write to it's query input text a string of my own then issue this: w1.document.forms[0].submit()

any ideas?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-29-2001 16:29

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-29-2001 16:41

Yeah, you're not able to access another window's content if that window's page is on a different site. That would allow you to get around company firewalls and such. So you're not allowed to do it in most browsers.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-29-2001 17:20

Ini, how?

quote:
Another issue could be in your browser's security settings. See Options/security/advanced to enable Iexplore scripting across domains.
Generally, browsers should not script across domains (for weird security reasons)
You can access a search engine's form, but in a different way..



Slime, also how?

quote:
That would allow you to get around company firewalls and such



Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 08-29-2001 19:51

I doubt it would let you get around firewalls. The traffic still has to come across that connection, and thus, through the firewall.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-29-2001 21:27

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-29-2001 21:28

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-29-2001 22:41

Pugzly, it's sort of a weird way, but lets say you had a forum like this. Only you made it so that when someone clicked "submit reply", it used some JavaScript to open another window in a hidden frame, making the URL of that window some page that's only accessable behind a company firewall. Then you could get some information from that window (like document.body.innerHTML) and send it along with the form. That would let you get information about the company. This prevents that.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-29-2001 22:45

Ini! never though of that Iframe trick before!

Actually, I'm not trying to post! instead i'm trying to pre-fill a form of another site from my site and then redirect the user there and then he sees and agrees and then submits himself.



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-29-2001 23:05

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-30-2001 10:19

ok! thanks guys!
If it's not crossbrowser compatible then i forgot about it!

« BackwardsOnwards »

Show Forum Drop Down Menu