The RasDisconnect Method of the Generic ActiveX Object disconnects a specified modem/serial connection.
RasDisconnect (Method of the Generic ActiveX Object) Syntax  var iRetVal = objGeneric.RasDisconnect(strEntry);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description 
Default Value strEntry String Name of the phone book entry to be terminated N/A 
Return Values
Name Description iRetVal The status of the connection, see Remarks 
Examples
The following example disconnects "My Connection" and then displays the connection status:
<OBJECT ID="Generic" CLASSID="CLSID:9928F1E9-B689-4DBA-8B82-E02A7AF76596"></OBJECT> <script> objGeneric.RasDisconnect("My Connection"); alert(objGeneric.ConnectionStatus("My Connection")); </script>
Copy example to clipboard
Remarks
Return ValuesPossible return values are: Port Open (0x0000), Paused (0x1000), Done (0x2000)
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Runs immediately. Min. Requirements None. 
        Copy example to clipboard