Forum Moderators: open
<!-- #include file="some-file.txt" -->
Then if that loads in the page correctly, you could read the content with Javascript once it's in the page:
if (document.getElementById('some-id-from-include')) { ... }
But you can't do that on the client's side at all.