3 <script type=
"text/javascript">
4 window
.onload = function() {
5 document
.getElementById('to_separate').action
= getLocationWithHttpSchemeSecuritySwapped();
8 function getLocationWithHttpSchemeSecuritySwapped() {
9 var protocol
= ("http:" == window
.location
.protocol
) ? "https://" : "http://";
10 var url
= protocol
+ window
.location
.host
+ window
.location
.pathname
;
16 Navigation complete. Below is the different login form pushed by server but with same action URL.
17 The URL schem may or may not be same. Moreover, browser shall not promp user to save incorrect password.
18 <form method=
"POST" id=
"to_separate">
19 <input type=
"text" id=
"username_separate" name=
"username_separate">
20 <input type=
"password" id=
"password_separate" name=
"password_separate">
21 <input type=
"submit" id=
"submit_separate" name=
"submit_separate">