Here is what I'm trying to do. My main page (page A) open a page (page B) with window.open() and automatically see if the link is correct. How can I do this? The two pages are on the same domain so I can access the properties of page B. Note that I can't modify the code of page B.
So I've tried to retrieve the tile (because the title looks like this when the link in not correct: "Error - blabla" of page B with the following command:
b = window.open(page B);
document.write(b.document.title);
but this write nothing on page A and gave no error. I can however access other porperties of page B. So how can I retrieve the title of page B from page A? If you have other suggestions don't hesitate.
What I want to do is check if page B is not in error (like a 404 error) when page A open it.
So I've tried to retrieve the tile (because the title looks like this when the link in not correct: "Error - blabla" of page B with the following command:
b = window.open(page B);
document.write(b.document.title);
but this write nothing on page A and gave no error. I can however access other porperties of page B. So how can I retrieve the title of page B from page A? If you have other suggestions don't hesitate.
What I want to do is check if page B is not in error (like a 404 error) when page A open it.