質問

When I Mouse-click on any element of a SharePoint page, I must be able capture it and be able to add this element's name to a SharePoint list using JavaScript. I have no idea how to do this. Can someone please kindly guide me how this can be achieved? Any help would be greatly appreciated.

役に立ちましたか?

解決

This should produce javascript list that contains elements you have clicked on.

<script type="text/javascript">
$(function(){
var list = [];
$(document).on('click','*',function () {
        list.push(this);
});});
</script>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top