/    Sign up×
Community /Pin to ProfileBookmark

how can i check browser version for this?

I have a form with popups. the user clicks a link on the form and a popup with choices are displayed..after the user makes their choices, then clicks a Submit button, these choices are automatically sent to the right textbox in the original form..

here’s thelink on the original form:

<a href=”markGrLogos.html” onClick=”NewWin=window.open(this.href); return false;”>Click
to select options</a>

on the popup, the submit button triggers a function, here it is:

<script>
function send() {
var blank;
var mess;
var newlogo = “”;
blank=”You do not wish to select any logos?”;
mess=”Your current selection(s) for Logos are:n”;

//Validation
if ((document.logos.Oth.checked) && (document.logos.othLogos.value==””)) {
alert(“You must specify what you want if you have selected ‘Other’ as an option.”);
return false;
}

if ((!document.logos.Oth.checked) && (document.logos.othLogos.value!=””)) {
alert(“You must select ‘Other’ as an option.”);
return false;
}

if (document.logos.WEG.checked) {
newlogo += “n” + ” Woodbine Entertainment Group”;
}

if (document.logos.Woodbine.checked) {
newlogo += “n” + ” Woodbine”;
}
if (document.logos.Mohawk.checked) {
newlogo += “n” + ” Mohawk”;
}
if (document.logos.HPI.checked) {
newlogo += “n” + ” HorsePlayer Interactive”;
}
if (document.logos.HPR.checked) {
newlogo += “n” + ” HorsePlayer Rewards”;
}
if (document.logos.TRN.checked) {
newlogo += “n” + ” TRN”;
}
if (document.logos.Champ.checked) {
newlogo += “n” + ” Champions”;
}

if (document.logos.Oth.checked) {
newlogo += “n” + ” Other: ” + document.logos.othLogos.value;
}

if (newlogo!=””) {
if(confirm(mess + newlogo)) {
window.opener.document.Layer11.document.graphics.Logos.value=newlogo;
window.close();
} else return false;
} if (newlogo==””) {
if (confirm(blank)) {
window.opener.document.Layer11.document.graphics.Logos.value=newlogo;
window.close();
}
else return false;
}

}
</script>

This works fine in Netscape 4.7x. How can I alter this so that it will also work in IE6??

THANKS ALL!!!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 15.2003 — navigator.appCersion

will give you the version
×

Success!

Help @sanjuT spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...