javascript & frames

L

LagWagon

hi,

I have a page whith frames where y load other pages in. If these other pages
are in my computer y can read/write with javascritp in their properties like
name, location, href etc. but when y have loaded in a frame a page that is
not in my computer y can`t use these properties.

I know that the page is not accessible using javascript from my page, but
the frame is a frame of my page. I don`t understand it. why? Can´t I load
another page in this frame if it has a page that isn`t in my computer?

can I know whith javascript when a page loaded in a frame is in my computer
or not?

thanks.

(sorry, my english isn`t good)
 
K

kaeli

I know that the page is not accessible using javascript from my page, but
the frame is a frame of my page.

A frame is merely a window embedded in another window. You cannot access
pages from other domains in your frame for security reasons. If you
could, you could hijack their pages and do whatever you wanted with
them, including re-direct orders, credit card information, and other
private data into your pages, database, or whatever. You could also put
malicious scripts on their pages. So, no, you can't access a page from a
different domain in your frames with javascript.
I don`t understand it. why? Can´t I load
another page in this frame if it has a page that isn`t in my computer?

As explained above, no.
can I know whith javascript when a page loaded in a frame is in my computer
or not?

I don't think so. Someone will correct me if I'm wrong.

-------------------------------------------------
~kaeli~
Press any key to continue or any other key to quit.
Who is General Failure and why is he reading
my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
 
L

LagWagon

thanks kaeli.

I'll try another way to do this.

open in the frame a page that has 2 frames too. the size of them will be
100% and 0%. in width and height. the frame "100%" will load the extern
page. in this way, in my principal page of frames I can open this page with
2 frames and others in a frame. now I can access to properties of this frame
because the page it opens not is extern yet.

I only need open the extern page. not to manipulate it.

bye.

(sorry, my english is poor)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,219
Latest member
Geraldine7

Latest Threads

Top