2 <a href=
"login">this is secure
</a>
3 <a href=
"http://host.com">not secure
</a>
4 <a href=
"http://chromium.org/">also not secure
</a>
7 var a
= document
.createElement('a');
8 var linkText
= document
.createTextNode("generated link to get port right. also secure");
9 a
.appendChild(linkText
);
10 a
.href
= "https://www2.host.com:" + location
.port
.toString() + "/login";
11 document
.body
.appendChild(a
);