Hi,
I have been facing the below issue...
I'm displaying the DHTML popup box while clicking a link(i.e., go)....
In the script, close button is used to close the DHTML popup box....It is getting closed when I click it at very first time....but it is not getting closed in case I close the popup box and reopen the popup box by clicking the same link(i.e.,go)...Kindly, look into the below code and let me know what could be the issue here...
Note: the above problem is happening for minimize and maximize buttons as well..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" src=".../popup.js"> // Kindly download it from the following link.... [
dynamicdrive.com...]
</script>
<script language=javascript>
function closeWindow()
{
window.close();
}
function redirct1()
{
window.open("http://www.google.com","_blank")
}
function redirct2()
{
window.open("http://www.yahoo.com","_blank")
}
function popUpWindow() {
new popUp(200, 100, 350, 200, 'Div1', "<center><table border='0' cellpadding='15' cellspacing='0' width='300'><tr><td><p>Please select a site which you want to be redirected</p><p align='center'><button onclick='javascript:redirct1();'>Google</button> <button onclick='javascript:redirct2();'>Yahoo!</button></p><a href='javascript:closeWindow();'><font color='#ff8000'>NO</font></a>. Close this window</font></td></tr></table></center>", 'white', 'black', 'bold 10pt sans-serif', 'Site selection', 'navy', 'white', '#dddddd', 'gray', 'black', true, true, true, true, false);
}
</script>
</HEAD>
<BODY>
<a href = "#" onclick="popUpWindow();">go</a>
</BODY>
</HTML>