Subj : Error To : netscape.public.mozilla.jseng From : waidoan@hotmail.com (Wai Doan Hsu) Date : Fri May 09 2003 06:42 pm I'm using this relatively simple function, which is working fine in IE, Netscape 4.xx, and Opera. In Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 when it gets to the window.location.href (line 43), which actually seems to work, it gets the error below and never makes it to the "leaving" part. The call to mailTo is followed by a return false, which is not working either. What's going on here? function mailTo(subject,itemName,domain,dataItem){ var address = itemName+"@"+domain; alert("starting"); window.location.href="mailto:"+address+"?subject="+subject+"&body="+dataItem+' '; alert("leaving"); }; Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///C:/Documents%20and%20Settings/localuser/Desktop/browsertest.html# :: mailTo :: line 43" data: no] .