S
Sujan
Hello all,
Help me!
--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="JavaScript">
<!--
function popMe() {
openMe = window.open('http://www.google.com/','google','location=no,
status=no, width=640, height=480, left=100, top=100');
openMe.focus();
}
function closeOpened() {
closeIt = window.close('google'); // I need help on this line.
}
//-->
</script>
</head>
<body>
<input type="button" value="Click me!" onclick="popMe();" /> <input
type="button" value="Close opened" onclick="closeOpened();" />
</body>
</html>
--------------------
I have one button says "Click me!" when I click on that button its
calls a function "popMe()" and opens a popup window. And also I have
another button which says "Close Opened" and when I click on it, it
doesn't close the opened window.
Is my script is wrong? Help me on the function "closeOpened()".
Thank you in adv.
Help me!
--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="JavaScript">
<!--
function popMe() {
openMe = window.open('http://www.google.com/','google','location=no,
status=no, width=640, height=480, left=100, top=100');
openMe.focus();
}
function closeOpened() {
closeIt = window.close('google'); // I need help on this line.
}
//-->
</script>
</head>
<body>
<input type="button" value="Click me!" onclick="popMe();" /> <input
type="button" value="Close opened" onclick="closeOpened();" />
</body>
</html>
--------------------
I have one button says "Click me!" when I click on that button its
calls a function "popMe()" and opens a popup window. And also I have
another button which says "Close Opened" and when I click on it, it
doesn't close the opened window.
Is my script is wrong? Help me on the function "closeOpened()".
Thank you in adv.