I have written javascript function to change the port from 80 to 443 in case of secure connection i. e
https:// In Internet Explorer, when setting up an HTTP monitor and chosing the protocol of HTTPS, the port changes from 80 to 443. But this javascript does not work in Firefox.
Here is the function:
function setPort() {
var protocolelement = document.getElementById("PROTOCOL");
var portelement = document.getElementById("PORT");
if (portelement.value == "80" || portelement.value == "443") {
if (protocolelement.value == "HTTP") {
portelement.value = "80";
} else if (protocolelement.value == "HTTPS") {
portelement.value = "443";
}
}
}
Could it be a DOM compatibility issue?
Thanks.