Вопрос

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