






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture was delivered by Prof. Arun Ullal at Ankit Institute of Technology and Science for Web Programming course. It includes: Event-driven, Programs, HTML, Forms, Properties, Methods, Handlers, Timeouts, Attributes
Typology: Slides
1 / 30
This page cannot be seen from the preview
Don't miss anything!























Fun with Buttons
var OutputWindow = window.open();
// open a window and assign//
a name to that object
//
(first arg is an HREF)
OutputWindow.document.open();
// open that window for//
writing
OutputWindow.document.write("
WHATEVER
");
// write text to that//
window as before
OutputWindow.document.close();
// close the window
Fun with Buttons
rd
Fun with Text Boxes
Enter your name here:
Fun with Text Boxes
Temperature in Fahrenheit:
---->
in Celsius
function VerifyNum(textBox)// Assumes: textBox is a text box// Returns: true if textBox contains a number, else false + alert{
var boxValue = parseFloat(textBox.value);if (
isNaN
(boxValue) ) {
//
**
isNaN
function
alert("You must enter a number value!");textBox.value = "";return false;
} return true;
}
Fun with Textareas
Show the numbers from
to
raised to the power of
Fun with Text Boxes
Temperature in Fahrenheit:
---->
in Celsius