1swfobject.registerObject("clippy.codeblock-1", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<html>
18<head>
19 <script type="text/javascript" src="http://domain:port/support/api/25.0/interaction.js"></script>
20 <script type="text/javascript">
21 var callback = function (response) {
22 if (response.result) {
23 alert('Width was set successfully.');
24 }
25 else {
26 alert('Width was not set successfully.');
27 }
28 };
29</script>
30</head>
31<body>
32 <button onclick="sforce.interaction.cti.setSoftphoneWidth(100, callback);">
33 set softphone width to 100px
34 </button>
35</body>
36</html>