title: how to protect location.href from cross site scripting in javascript?
body: <p>Here in my javascript function im using location.href as follows 
    <code>location.href = "../Floder1/result.jsp";</code> it is working fine but when i used fortify tool it is showing Cross-site Scripting <code>which can result in the browser executing malicious code.</code>  how to protect this from cross site scripting. Thank you very much,your answer will be very much appreciated.</p>