answersLogoWhite

0


Best Answer

VBScript, is a versatile programming language, using multiple different ways to display it's output.

VBScript code can be written inside of a web page: [.html]/or else, the web page can link to the code which has being saved as an external script file: [.vbs]. When used inside of the web page, VBScript uses the window document object to display it's output.

VBscript files can also be both written and run as being a purely stand alone file: [.vbs]; in the which case it doesn't need any web page document object to display it's output; but, instead, the output is displayed using a standard windows dialog message box.

Example 1> VBScript, written inside of a web page

For example, when VBScript code is being written inside of a web page...it uses the web page document window object itself to write it's output to; in the which case, the output statement might look like this...

USER INSTRUCTIONS: Save the above file as being called: vbs01.html

...then, left double click on the file to run/make the code execute.

NOTE(1): Only web browser MSIE/Microsoft Internet Explorer knows how to run VBScript code, successfully; without needing to use any external browser plug in. Therefore, the above code is certainly not guaranteed to work/run inside of any other web browser software; which, most probably, won't even understand it at all?!

That's the reason why the above code uses HTML comment notation: to hide the VBScript code from other Web Browsers that might not be able to understand it; in this way, the VBScript code will not accidentally be displayed if the web browser doesn't know what it is; instead, the code will, quite simply, be 'ignored'; and, thus, remain hidden instead.

NOTE(2): In order to use VBScript within a web page; you first need to surround the code with a pair of open and close: tags.

NOTE(3): The use of a pair of brackets: () to enclose the "string literal" text is entirely optional.

Example 2> VBScript, written as a stand alone document file

MsgBox "Hello, world! (1)"

'...which could alternatively be written as...

MsgBox("Hello, world! (2)")

'...in this case a Windows standard Dialog Box is used to display the output text.

USER INSTRUCTIONS: Save the above file as being called: vbs02.vbs

...then, left double click on the file to run/make the code execute.

NOTE(1): A stand alone VBScript (.vbs) file...has no window object to send it's output to...so, it uses a Windows standard dialog message box to display output messages.

NOTE(2): The use of a pair of brackets: () to enclose the "string literal" text is entirely optional.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does vbscript display information for the user?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What kind of boxes do GUIs use to provide information and prompt responses to the user?

MessageBox.show is used to display information to user by coding.


What control do you use to display information you do not want the user to change?

Label


How does a VBScript work?

VBScript, like Javascript is an interactive scripting language that works within HTML. For more information on how to use VBScript, visit the W3 Schools website by clicking on the related link.


When was VBScript created?

VBScript was created in 1996.


Write a shell program called whos to display a sorted list of the logged in usersJust display the user names and no other information?

The 'users' command should do that; you don't need to write a shell script to get that information in that format.


What is vbscript?

! VBScript is a Microsoft created program. It stands for Visual Basic Scripting


When does Defense Travel System display the user activation screen?

Only the first time the user logs in to DTS does the Defense Travel System display the user activation screen.


What is the display screen that the user interacts with?

Monitor


Which type of control would you most likely use to display name information in access?

To display name information in Access, you would most likely use a text box control. This allows users to input or view text data such as names in a user-friendly manner. You can bind the text box control to a field in a table or query to display the name information stored in your database.


Would a gps gramin 60cx be easy to understand for first-time users?

As with anything new, there will be a slight learning curve, but the graphical user interface is designed to display all the necessary information for the user to read well. There is a large color TFT display to help visibility at all times of the day.


What is primary purpose of text box in vb?

To display information. There is something called a msgbox as well as a inputbox. Msgbox displays information. Inputbox allows the user to input data which has a certain value.


What is the 5 examples of output divices?

Output devices are hardware components that display or present information to the user. Examples of output devices include monitors, printers, speakers, projectors, and headphones. Monitors display visual information, printers produce hard copies of documents, speakers output audio signals, projectors display images on a larger screen, and headphones provide audio output directly to the user.