Why not just use a frame buster script at the top of your page. Something
like this should work
if (self != top) top.location.replace(self.location);
HTH
Dave
-----Original Message-----
From: Greg Dunn [mailto:greg.dunn@n...]
Sent: Tuesday, September 17, 2002 11:01 AM
To: javascript
Subject: [javascript] RE: how to close window having frames in page
1. You can't do it, the browser is programmed that way for security.
2. Luckily for Hotmail users, you have no control over how Hotmail displays
your message, so you're SOL.
Why don't you try a spammer or porn site webmaster list, they're good at
this kind of intrusive BS.
Greg
-----Original Message-----
From: ejaz [mailto:ejaz@p...]
Sent: Tuesday, September 17, 2002 10:03 AM
To: javascript
Subject: [javascript] how to close window having frames in page
hi fallows
when i gave a link of my
website in the email at
hotmail....hotmail opens it in
the frames. my page has
follwoing code
<!--
<HTML>
<HEAD>
<META NAME="GENERATOR"
Content="Microsoft Visual
Studio 6.0">
<TITLE>close window</TITLE>
</HEAD>
<BODY>
<script language=javascript>
window.open('http://ejaz.150m.
comt', 'gift', 'resizable=no,
toolbar=yes, location=no,
directories=no, status=no,
menubar=no, scrollbars=yes,
height=600, width=800, left=0,
top=0');
window.close();
</script>
<P> </P>
</BODY>
</HTML>
-->
Now there are two problems
1. when the window closes it
gives an alert message either
to close the window or not. I
dont want this message just
want to close the window
2. Hotmail opens it in the
page with frames. so this
script is not working there.
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20