0

I need a little assistance. I want to close a firefox tab after a classic asp script has executed which is run at specific times of the day automatically.

I have tried the following code without success:

<% ASP SCRIPT %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
window.onload = function(){window.close();}
</script>
</head>
</html>

Any ideas how this can be accomplished? Any help would be greatly appreciated.

Many thanks, neojakey

neojakey
  • 1,633
  • 4
  • 24
  • 36
  • you can't close tabs/windows automatically. Only with the `window.close()` but you will be asked to confirm. [related](http://stackoverflow.com/questions/2076299/how-to-close-current-tab-in-a-browser-window) – VDP Sep 07 '12 at 14:45

1 Answers1

1

Refer to This question. It doesn't seem possible.

Community
  • 1
  • 1
James Kleeh
  • 12,094
  • 5
  • 34
  • 61