Working on a project and it is a basic welcome/goodbye site for employees at our Agency (HR spearheaded). So I have most done already interns of the content and animations.
Of course they want me to add a close window button versus staff just clicking the X, or just typing a new web address as they can use the browser window to do what they want anyway.
The first method created a button that, when clicked, prompts the user “Do you want to close this window?” If the user clicked OK, the window would close.
<input type=“button” value=“Close this window” onclick=“self.close()”>
The second method required a bit more work, but avoided the “prompting issue”. The following lines of code were to be inserted into the head of an HTML document:
Then, the following line of code was to be inserted into the body of the HTML document:
<input type=“button” value=“Close this window” onclick=“windowClose();”>