views:

252

answers:

3

I am using window.close() for closing window by clicking on button its not working in IE 6. Is there any jquery solution

+1  A: 

Its not an issue with IE. Use the correct code. Check Using window.close

Shoban
A: 

The problem might be where you are using the window.close.

You have to make sure that the window object is referring to the current object, ie If you have a parent and child window and you are trying to call window.close from the parent the window object will be the parent window.

Make sure that the window object is corrent

Arun P Johny
+2  A: 

jQuery is awesome! You can call one method to do something and it will work in all modern browsers:

$(window).each(function(){ this.close() })

</sarcasm>

Crescent Fresh