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/28.0/interaction.js"></script>
20 <script type="text/javascript">
21 var callback = function (response) {
22 if (response.result) {
23 alert('Screen pop was set successfully.');
24 }
25 else {
26 alert('Screen pop failed.' + result.error);
27 }
28 };
29 function screenPop() {
30 //Invokes API method
31 sforce.interaction.screenPop('/001x0000003DGQR', true, callback);
32 }
33</script>
34</head>
35<body>
36 <!-- Note that '001x0000003DGQR' is an example of an object Id to screen pop. -->
37 <button onclick="screenPop();">screen pop to entity Id</button>
38</body>
39</html>