Web Programming I | Preboard Solutions

Morgan Group A Why is <head> tag used in HTML file? The <head> tag is used in HTML file to contain specific information about a web page, referred as metadata, which includes things like the title of the document (which is mandatory), scripts or links to scripts, and CSS files. E.g. <head> <title> Title </title> […]

Continue Reading

Web Programming 1 Short Question Answer 2012

2012 Group A What is cookie?? A cookie is a text file that a web browser stores on user’s machine.they are used by websites for authentication,storing website information/preferences,othe browing information etc. Where is client side scripting language executed? The client-side environment used to run scripts is usually a browser. The processing takes place on the […]

Continue Reading

Form Validation

<html> <head> <title>Form Validation</title> <script type=”text/javascript”> function main() { var name=document.F1.N.value; var age=document.F1.A.value; var male =document.getElementById(‘male’).checked; var female =document.getElementById(‘female’).checked; var password=document.F1.P.value; var confirm=document.F1.CP.value; var email=document.F1.email.value; var Gender=document.getElementsByName(‘G’); var a=checks(Gender); var Ho=document.getElementsByName(‘H’); var b=””, r=0; for(var i=0;i<Ho.length;i++) { if(Ho[i].checked) { b+=Ho[i].value + “\n\t”; r++; } } if(isEmpty(name)==false) { alert(“name should be filled”); } else if(checkAge(age)==false) { […]

Continue Reading