Hi all,

I have run into a issue where when I have a javascript function which opens a window to a mailto tab, in firefox and chrome blank tabs appear. Outlook opens and all the information is there, but I would like the new tab to automatically close like it does in IE.

This is my code so far:

<script type="text/javascript">
function open_win() {
var dropList = document.forms[0]['ProdDropClient'];

window.open("mailto:" + document.forms[0]['EmailBox'].value + "?subject=Key&body=Hi,%0D%0A%0D%0ARegistered Company Name: " + document.forms[0]['NameBox'].value + "%0D%0AProduct : " + dropList.options[parm.selectedIndex].text + "%0D%0AKey Generated : " + document.forms[0]['KeyBox'].value + "%0D%0A%0D%0AThanks,%0D%0AWinfreight");


I have tried the following options,

1. window.opener.close();
2. setTimeout("window.close()", 5000);
3. self.close();

and a couple others. I created a seperate javascript function which will close a window which I then called after I had executed the open window function, but that didn't work either. I just have no idea how to fix this. Any help would be MUCH appreciated, thanks