0
My Code:-

<BODY onload="redireccionar();">

 <SCRIPT LANGUAGE="JavaScript">
  function redireccionar() {
    setTimeout("self.close()", 500);

  }
  </SCRIPT>

Above is my code regarding facing issues on chrome and firefox while it works fine with IE. I have tried almost all functions available here but still facing the same. please suggest any solution. Thanks in advance.

Rabindra
  • 101
  • 1
  • 4
  • 13

1 Answers1

0

I searched everywhere and found out that you have to trick the browser into thinking it was opened w/JavaScript. This worked for me in Firefox and IE:

<a href="javascript:window.open('','_parent','');window.close();">Close this window</a>
Gee
  • 155
  • 2
  • 6
  • 21