HighTechTalks DotNet Forums  

what and how

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss what and how in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rodchar
 
Posts: n/a

Default what and how - 07-13-2006 , 11:02 AM






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

Reply With Quote
  #2  
Old   
Hitesh Ramchandani
 
Posts: n/a

Default Re: what and how - 07-24-2006 , 03:01 AM






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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.