سؤال

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