challenge - can this be done?

A

alxasa

Try navigating to HOTMAIL from the resulting page.... eventually it
pops out of frames mode. Is there any different approach to this that
will not do that? Alxasa


<loadme.htm code>
----------------------------------------------------
<html>
<frameset rows="50%,50%">
<frame src="" name="main">
<frame src="page.htm" name="menu">
</frameset>
</html>


<page.htm code>
-----------------------------------------------------
<html>
<head>
<script language="JavaScript">
<!-- hide

function load(url) {
parent.main.location.href= url;
}

// -->
</script>
</head>
<body>

<a href="http://www.msn.com" target="main">LOAD MSN</a>

</body>
</html>
 
H

Harlan Messinger

Try navigating to HOTMAIL from the resulting page.... eventually it
pops out of frames mode. Is there any different approach to this that
will not do that? Alxasa

No. If they include target="top" in a link, the destination page will
replace the entire frameset in the browser.
 
K

Kevin Darling

Harlan said:
No. If they include target="top" in a link, the destination page will
replace the entire frameset in the browser.

True... unless you were able to use an iframe in an .hta file, in which
case I believe that "top" is limited to the iframe itself (if you don't
set application='yes" on the iframe).

Kev
 
A

alxasa

Kevin said:
True... unless you were able to use an iframe in an .hta file, in which
case I believe that "top" is limited to the iframe itself (if you don't
set application='yes" on the iframe).

Kev

Hi Kev, how would that code & process look exactly?
 
J

jojo

Try navigating to HOTMAIL from the resulting page.... eventually it
pops out of frames mode. Is there any different approach to this that
will not do that? Alxasa

It's not very kind to view webpages of other people in a frame in your
site. What would you say if I would display a beautiful site of yours in
a frame of my site so it looks like it was mine? No, you really
shouldn't do that. Many people try to prevent that within their code.
You can for example add this script to your site to make sure that it
isn't displayed in a foreign frame (of course it only works if JS isn't
switched off):
<script type="text/javascript">
if (window!=top.window) location.href="LINK TO YOUR SITE";
</script>
Or you could add a base-tag to your website to break the frameset if a
link is clicked:
<base href="LINK TO YOUR SITE" target="_top">
So you see it's quite simple to brevent a site from beeing displayed in
a frameset. And that's quite good.

jojo
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top