Possible Duplicate:
Accessing HTTP Headers in Javascript?
I want know a mime-type or content-type of current loaded page via JavaScript. the thing I wanna do is to check whether it is rss or html of the page.
The only thing I could find is 'document.contentType', but it is supported in Gecko ( firefox ).
does anyone know how to do it via JavaScript ?