Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window.close question
Message
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00583084
Message ID:
00583102
Views:
29
Sarah,
Its a security thing. It'll work without asking if there is only one location in the browsers history, if there's more than one, it prompts the user for confirmation. If this becomes a problem, you can always restrict the history of a window to one location by using the replace() method.
>I avoid JavaScript where possible in favour of serverside but sometimes you just need it!
>
>so I have a button which I want to close a popup "thanks, I've done it"-type of window. Problem is window.close() gives me an alert saying are you sure. Yet when I see the same code used on other sites it doesn't.
>
>I'm wondering if it's something to do with code like window.opener...?
>
>Sarah
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform