NotesDatabase.UnprocessedDocuments doesn’t work on the web as it does in the Notes client, due to the very different nature of the two platforms.
On the web, the typical technique for grabbing selected documents in a Domino view is to make use of checkboxes. This article on Codestore can tell you more: