FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The command used in VB Script for writing some text on a page is
A
document.write()
B
Msgbox
C
A and B are correct
D
None of these
Explanation: 

Detailed explanation-1: -To insert a VBScript into an HTML page, we use the <script> tag. Inside the <script> tag we use the type attribute to define the scripting language. The document. write command is a standard VBScript command for writing output to a page.

Detailed explanation-2: -First VBScript In the given example, document. write function is called, which writes a string into the HTML document. Write function is used to write text, HTML or both.

Detailed explanation-3: -VBScript was mainly used to give functionality to webpages. It was originally used for client-side scripting in IE. Web developers could write and embed executable VBScript functions in the Hypertext Markup Language (HTML) of a webpage, which controls the presentation of data.

Detailed explanation-4: -The most common way to define a function in VBScript is by using the Function keyword, followed by a unique function name and it may or may not carry a list of parameters and a statement with an End Function keyword, which indicates the end of the function.

There is 1 question to complete.