Program Code – Swapping the image
This code runs as javascript and this code can also be used as VBScript. For that, you need to change line 4 to <script language=” VBScript”> and the HTML file should be opened on old Internet Explorer
To develop from within
This code runs as javascript and this code can also be used as VBScript. For that, you need to change line 4 to <script language=” VBScript”> and the HTML file should be opened on old Internet Explorer
This program written in simple HTML (Hyper Text Markup Language) and with using Javascript.It’s work on any browsers. Onload event The onload event occurs when an object has been loaded . onload is most often used within the <body> element to execute a script once a web page has completely loaded all content (including images, … Read more
This code is written as normal HTML (HyperText Markup Language). It works on any browser. It doesn’t need javascript or VBScript to show list options in output.
This code is written in javascript. For that, you need to declare <script language=”javascript”> and the HTML file to be opened on your browser. The code uses various built-in “Date & Time” functions in javascript. It gets the current time and date from your operating system and shows it on an HTML page.
This code is written in javascript. For that, you need to set script language <script language=”javascript”> and the HTML file cloud opened on your browser. The output will check the entered mail is email is valid or not. If the email is not valid it shows a message box “Invalid Email id please enter correct … Read more
Sorting numbers. We use built-in functions of javascript to sort the values ascending in an array. Here, we create an array called “numbers” with values. we use .sort() function to sort it. Before .sort() you should be adding the array variable. In this case, This will sort the items in ascending order. To sort descending,
For Syllabus and Books for this subject check Web Technology Syllabus & Book List . For Lab Programs List check -> Web Technology – (VBScript, ASP, JavaScript) – List of Lab Exercise (as per syllabus) For All Programs for this subject -> Web Technology (VB Script + ASP) Here is the link to download the … Read more
This is a simple calculator program to perform addition subtraction multiplication division between two numbers. This code runs as javascript and this code can also be used as VBScript. For that, you need to change line 6 to <script language=”VBScript”> and the HTML file should be opened on old Internet Explorer.
This program outputs a table. Column 1 – number (1 to 100) Column 2 – Square root of the number For this we use built in math function – Math.Sqrt(i) Column 3 – Square i*i Column 4 – Cube of the number i*i*i Column 5 – Binary of the number toString(2) Column 6 – Complement … Read more
VB SCRIPT based Programs Write a program outputs the squares, roots, cubes and complements of integers between 1 and 100. Create a calculator. Write a script to Sort numbers and strings Create a program to generate a hit counter Create a program to verify whether email address provided by user is valid or invalid. Write … Read more
Unit 1: Introduction to` VBScript – Adding VBScript Code to an HTML Page – VB Script Basics – VBScript Data Types – VBScript Variables – VBScript Constants – VBScript Operators – mathematical- comparison-logical – Using Conditional Statements – Looping Through Code – VBScript Procedures – type casting variables – math functions –date functions – … Read more