Question

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.

Était-ce utile?

La solution

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>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top