Click this button to invoke an onclick event, and check whether it is trusted:
Click this button to trigger an onclick event by a script, and check whether it is trusted:
Note: The isTrusted property is not supported in Safari and IE8 and earlier.