문제

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