Subj : Re: Error To : Wai Doan Hsu From : Brendan Eich Date : Fri May 09 2003 08:16 pm Wrong newsgroup -- see followup-to: setting. /be Wai Doan Hsu wrote: >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] > > .