Report question

Question: How to check if page exists using JavaScript