I do not see anything wrong in any of the pages, the new pages open as
new tabs in IE7 (that's how I have configured them), and the javascript
closes the tab.
Try opening the pages in a named window -
<a href="newpage.htm" target="windowname">newpage</a>
Then, in the newpage.htm, use the script
<script type="text/javascript">
if ((window.name == "windowname") {
document.write("<a href='javascript
:window.close()'>Close this
window</a>");
}
</script>
This will write out the close window link if the page has been opened
from your link, but not if opened by any other means.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support:
http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
"Teriel9" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed):
> Hi Ron,
> Many thanks for your very prompt respone.
> Customer using IE6 and AOL respectively.
> They arrive at this page using a hyperlink from a picture on the main Stud
> dogs page http://www.gundogs-wales.co.uk/dogsatstud.htm so they should have
> the main page still open.
> What foxes me is that with my IE6 it functions correctly
> Settings for hyperlink are with "Blank" selected.
> I suppose a workaround would be to remove the "Close window" script and just
> leave the user to close with thier browser if this is going to happen to
> other users.
> Regards
> Teriel9
>
> "Ronx" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > IE7 will always show a warning when closing a window using JavaScript.
> > In the case of your customers, it sounds like they only have one window or
> > tab open - so closing it will close the whole site. How do they get to
> > this page - through a link on your site (check target properties) or
> > through a shortcut, Favourites, Bookmarks or direct link from a search
> > engine or other site?
> > --
> > Ron Symonds - Microsoft MVP (FrontPage)
> > Reply only to group - emails will be deleted unread.
> > FrontPage Support: http://www.frontpagemvps.com/
> > http://www.rxs-enterprises.org/fp
> >
> >
> >
> > "Teriel9" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed):
> >
> >> I have included a "Close window" script on a customers web site
> >> http://www.gundogs-wales.co.uk/argo.htm
> >> On my computer it closes the window and returns to the previous page but
> >> on
> >> 2 of my customers computers it brings up a message "Internet Explorer is
> >> trying to close" etc and when yes is selected it closes down the whole
> >> site.
> >> Is there a setting in IE that is causing this or something in the online
> >> website.
> >> Thanks in advance
> >> Teriel9
> >