Rodchar,
The code checks the version of the client browser to verify if it is IE
explorer version 4 or above, if so then it exits the function.
<script language="Jscript">
test()
function test()
{
if( navigator.appVersion.substring(0,1) >= 4 )
{
return;
}
}
</script>
The below sites could help you in learning some basics about scripting.
http://www.w3schools.com/js/default.asp http://www.javascript.com
Best Regards,
Hitesh Ramchandani.
"rodchar" <rodchar (AT) discussions (DOT) microsoft.com> wrote
Quote:
hey all,
below is a line of vbscript:
If Not left(navigator.appVersion,1) => 4 Then Exit Function
1. what is it actually doing? like what does left function do
2. how do i convert this to javascript?
thanks,
rodchar |