Posts

Showing posts with the label BSc Sem 3 Computer

B.Sc. Semester 3 Computer 2017 Internal Paper

Image

JavaScript User-Defined Functions

JavaScript User-Defined Functions A user-defined function saves us from rewriting the same code again and again and helps us to make our application smaller. The given examples will help you to understand how you can put them to work. JavaScript has so many built-in functions, besides that you can make your own as per the need. General structure of the user defined function is: function function_name(par1, par2, …) { //statements } par1, par2 are the name of the parameter, one function could have one, more than one or no parameter. Parameters could be of any data type. Example 1(Simple Function): <html> <head> <title>Simple Function</title> <script type="text/javascript" >             function display()             {                         document.write("Welcome to Java Script!!!");             }             display(); </script> </head> </html> Output: Welcome to Jav

Basic HTML Form Controls

Basic HTML Form Controls Text Box: The size Attribute The size attribute specifies the size (in characters) for the input field. The maxlength Attribute The maxlength attribute specifies the maximum allowed length for the input field. <form action="">           First Name: <input type="text" name="firstname" value="Piyush" size="40"><br/>           Last Name: <input type="text" name="lastname" maxlength="10"> </form> Example: <form action="" method="">   First name:<input type="text" name="fname"><br>   Last name: <input type="text" name="lname"><br>   E-mail: <input type="email" name="email" ><br>   <input type="submit"> </form> Combo Box/List Box: The <select> Element The

Dialog Boxes in Java Script

Dialog Boxes in Java Script Sometimes dialog box may use to display warning message, for confirmation message and to get user information with "Ok", "Ok" and "Cancel" button. Three Types of Dialog Boxes Available Alert dialog box Confirmation dialog box Prompt dialog box Alert Dialog Box It is used to show a message in the dialog box, and there is an OK button. It is mostly used to prompt message if user missed input value or invalid data in given form or text. It is supported by all major browsers. Javascript Alert Dialog Box Example <html> <head> <title>Javascript Alert Dialog Box Example</title> </head> <body> <form name="myform"> <input type="button" value="Alert Dialog" onClick="alert('Welcome to JavaScript!!!')"/> </form> </body> </html> Confirm Dialog Box It is used to show a mes

WWW and Elements of Web

WWW and Elements of Web WWW An interlinked collected of hypertext document (web pages) residing on web server & other documents, menu and database, available via URLs. Web documents are marked for formatting and linking with HTML and web servers use HTTP to deliver web pages. WWW is a software application that makes it is and possible for nearly any one to publish and browse hypertext document on the internet. The World Wide Web is a collection of millions of file stored on thousands of computer called web servers all over the world. WWW is a most common access method of internet resources. ELEMENTS OF WEB WEB PAGE:- Web page is a resource of information that is suitable for the World Wide Web and can be accessed through web browser. This information is usually in HTML or XHTML format, and may provide navigation to other web pages via hypertext links. Web pages may be retrieved by local computer from a remote web server the web server may restrict acc