I am new to javascript, I have a problem with a window...
I am using this code to open a new window when someone clicks on the link, but I would like to close the parent window when they have clicked...
The new window is opened when the user has clicked on the link but a popup box appears and asks the user if they really want to close the window.
How can I stop the popup box and close the window automatically?
Am I doing this wrong?
I am using this code to open a new window when someone clicks on the link, but I would like to close the parent window when they have clicked...
Code:
<a href="javascript:void(null)" onClick="makeNewWindow0091();javascript:self.close()">Link</a>
The new window is opened when the user has clicked on the link but a popup box appears and asks the user if they really want to close the window.
How can I stop the popup box and close the window automatically?
Am I doing this wrong?