<html>
<head>
<title>Recoll searchable HTML</title>
<script language="JavaScript">
function recollsearch() {
if (navigator.appName != 'Microsoft Internet Explorer') {
var t = document.getSelection();
recoll(t);
} else {
var t = document.selection.createRange();
if (document.selection.type == 'Text' && t.text > '') {
document.selection.empty();
recoll(t.text);
}
}
}
function recoll(t) {
if (t) {
window.location.href = 'recoll://search/query?qtp=a&p=0&q=' +
encodeURIComponent(t);
}
}
</script>
</head>
<body ondblclick="recollsearch()">
<h2>A <b>Recoll</b>-searchable HTML page </h2>
<p>This is a text sample in which links have been inserted for
words, such as <a href="recoll:/system installation">system installation</a>,
which can be searched for in the whole document set by
using <a href="recoll:/recoll">recoll</a></p>
<p>Also a little bit of javascript magic can make
all words searchable (try double-clicking any word).</p>
</body>
</html>