Verify if back or forward pages exist

Is it possible for JavaScript to verify if back or forward pages exist for the browser ?