The code included in this section is a basic example of the code you would use to display a button which launches a call between an agent and a visitor when it is clicked.

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<script type="text/javascript" src="https://api.atgsvcs.com/call/clicktocall-1.0.js"></script>

<script type="text/javascript">

var mycallobj = new livehelp.Call({

target: "18001234567", // This is the website visitor's phone number

contactId: "123456" // This is the ID of the link from Webcare

});

</script>

</head>

<body>

<input type="button" value="Phone me" onclick="mycallobj.start();">

</body>

</html>

There are a number of points to note from this example;


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices