I would like to know a way to check if the webpage a href points to contains certain text using javascript.
<a href="/path/to/document.html" onclick="check_page()">click</a>
<script type="text/javascript">
function check_page()
{
//check for text in /path/to/document.html }
</script>