"Martijn" <m_*******@hotmail.com> wrote in message
news:c9**************************@posting.google.c om...
Hi,
There is a website which links to my website. But they put my website
in an <IFRAME> with their logo above.
My solution:
<script language="JavaScript">
if(top.location!=self.location)top.location.replac e("http://www.website.com"
) </script>
This script will load page in the top location.
Now there is something else.
If somebody links to my website, and they open a new window for that.
I want to close the previous window (the window with the link)
Is this possible?
With javascript, html, asp, php or something else???????
-Martijn
I've read the other posts where folk say it can't be done - I'm a newbie at
Javascript so I'm not going to go over their heads, however I've seen your
problem before...
Friends of mine had created a website for a radio station in Ireland - It so
happened that another radio station in Beiruit had the same FM or whatever
band... and the Beiruit radio station used the images from the Irish radio
station without permission (and using expensive bandwidth).
It was funny (though perhaps not very professional) but their result was to
move the real web site to another location (or changed the names of the
images - something like that). The original URL for the images of the Irish
radio station were replaced with Gadafi smoking pot and other images that,
after a short few days meant the folk hijacking someone elses hardwork and
bandwidth moved their attentions elsewhere.
So... well... perhaps that might give you some food for thought with regards
to whoever is frameing your website without your permission....
Mind you - again - I'm green around the gills when it comes to javascript
but can you not have your website perform a delayed link of a second or two,
to your home page using target=_parent or something? That would remove
their parent frame, would it not?