title: How do I determine whether a page is secure via JavaScript?
body: <p>I want to know if the page is being accessed via http or https using JavaScript.  Is there some sort of isSecure() method, or should I just parse it out of the URL somehow?</p>