1<html>
2<head>
3 <script type="text/javascript" src="http://domain:port/support/api/25.0/interaction.js"></script>
4 <script type="text/javascript">
5 var callback = function (response) {
6 if (response.result) {
7 alert('Height was set successfully.');
8 }
9 else {
10 alert('Height was not set successfully.');
11 }
12 };
13</script>
14</head>
15<body>
16 <button onclick="sforce.interaction.cti.setSoftphoneHeight(200, callback);">
17 set softphone height to 200px
18 </button>
19</body>
20</html>