neilhillman Posted December 2, 2009 Share Posted December 2, 2009 I came across something curious, and I can't find any documentation on it... When you use "window.location.href" to forward a page using Javascript, like so: <script language="JavaScript"> <!-- window.location.href = "http://www.picshost.net/secure/"; // --> </script> ... this works fine, but if you try redirecting to an .htaccess password protected page, like so: <script language="JavaScript"> <!-- window.location.href = "http://username:password@www.picshost.net/secure/"; // --> </script> ... this will work in FF, but not in IE! IE returns the Error Message: A security problem occurred. Anyone know any workarounds? Thanks! Neil Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.