jellyrools
02-12-2004, 02:56 AM
im trying to make some javascript that tells you what operating system you are using. I managed to get everything to work, except i cant work out how to make an if command.
at the moment this is what i have:
var os = escape(navigator.platform);
function osSystem(){
if os = Win32
{ os = "You are currently using Windows XP."
else
"You are not using Windows."
}
where am i going wrong?
at the moment this is what i have:
var os = escape(navigator.platform);
function osSystem(){
if os = Win32
{ os = "You are currently using Windows XP."
else
"You are not using Windows."
}
where am i going wrong?