forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowserClick.lcdoc
More file actions
49 lines (29 loc) · 2.37 KB
/
Copy pathbrowserClick.lcdoc
File metadata and controls
49 lines (29 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Name: browserClick
Type: message
Syntax: browserClick <instanceId>, <elementId>
Syntax: XBrowser_Click <elementId>, <instanceId>
Summary: Sent when the mouse is clicked in a browser object.
Synonyms: XBrowser_Click
Associations: card
Introduced: 2.8.1
OS: windows
Platforms: desktop
Security: network
Example:
on browserClick pInstanceId, pElementId
if pElementId is "help" then
helpShowPopup
end if
end browserClick
Parameters:
instanceId: The integer identifier of the browser object
elementId: The id of the html element that was clicked >*Note:* The browserClick message is only sent if advanced browser messages are turned on. To turn on advanced browser messages use the following command: revBrowserSet <instanceId>, "messages", "true" The browserClick message is currently only available on Windows.The id of an html element is the element's "id" attribute. For example <div id="navbar">. As this attribute is optional in most cases, not all html elements will have an id. If the html element that the mouse was clicked over does not have an id, then the elementId parameter will be empty. >*Note:* The browserClick message is not sent on OS X due to lack of system support in the underlying browser object. >*Note:* For general information on using the browser library, see the notes in the revBrowserOpen function reference.
Description:
The <browserClick> message is sent to the current card of a stack containing a browser object when the mouse is clicked in the browser.
>*Note:* The <browserClick> message is only sent if advanced browser messages are turned on. To turn on advanced browser messages use the following command:
<revBrowserSet> <instanceId>, "messages", "true"
The <browserClick> message is currently only available on Windows.
The id of an html element is the element's "id" attribute. For example <div id="navbar">. As this attribute is optional in most cases, not all html elements will have an id. If the html element that the mouse was clicked over does not have an id, then the <elementId> parameter will be empty.
>*Note:* The <browserClick> message is not sent on OS X due to lack of system support in the underlying browser object.
>*Note:* For general information on using the browser library, see the notes in the <revBrowserOpen function> reference.
References: revBrowserSet (command), browserOver (message), revBrowserOpen function (function)