I apologize in advance for my ignorance, I'm not proficient in web development but I'm trying to create a solution for a problem I have.

I have an HTML file I'm using which displays the contents of a folder hosted on IIS6. The file is stored in a folder protected by Windows folder permissions, so when the HTML file is launched a login window appears asking for credentials - which is exactly what I want.

I've also created a "close" button which will close the browser tab which works great:

<script>
function closeWindow() {
window.open('','_parent','');
window.close();
}
</script>


<input type="button" value="Close" onclick="closeWindow()">


This works great if the HTML file is in the only open IE tab. However, if the user has a 2nd IE window or tab open IE will remember the login credentials so even if I close my window using the above code, the user is not prompted to login again the next time the HTML file is open.

Is there any way to close ALL browser windows with the click of a button? Even if the user is prompted to confirm the close?

Any other easy solutions?

Thanks!