Mozilla function

Status
Not open for further replies.

Sulla

Baseband Member
Messages
36
Hi, I was wondering are there any function in javascript that only work with IE??

I have the following that closes a window once a button is pressed:

Code:
<html
<head>

<script ="text/javascript">
<!--
function closeit()
{
window.close();
}
-->
</script>
</head>


<body>

<input type = "button" onClick= "closeit()"/>

</body>

</html>

But it only works with IE which makes really surprised because I thought a function like window.close() works on anything.

Can anybody shed some light on this?
 
Status
Not open for further replies.
Back
Top Bottom