0% found this document useful (0 votes)
25 views2 pages

Head Title Title Script: Function

The document contains 3 sections with JavaScript functions: 1. A function to display an alert pop-up with the content of a text input element. 2. A function to display an alert pop-up with a greeting and the value of a textarea element. 3. A function to validate that a text input for a client name is entered, and display an alert if empty.

Uploaded by

Gina Huertas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Head Title Title Script: Function

The document contains 3 sections with JavaScript functions: 1. A function to display an alert pop-up with the content of a text input element. 2. A function to display an alert pop-up with a greeting and the value of a textarea element. 3. A function to validate that a text input for a client name is entered, and display an alert if empty.

Uploaded by

Gina Huertas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

<head runat="server">

<title></title>
<script language="javascript" >
<!--
function fnAceptar()

{
alert('l !ontenido del "e#t$o# es% ' &
docu'ent(getle'ent$)*d('t#tno'+re')(value),
docu'ent(getle'ent$)*d("t#tno'+re")(value = '',
-
//-->
</script>
</head>
<+od)>
<for' id="for'." runat="server">
<div>

ingrese te#to
<input id="t#tno'+re" t)pe="te#t" na'e="t#tno'+re"
/>/n+sp,/n+sp,/n+sp,/n+sp,/n+sp,
<input id="$utton." t)pe="+utton" value="+utton"
onclic0="fnAceptar()," /></div>
</for'>
</+od)>
</ht'l
<head runat="server">
<script language ="javascript">
function 'ensaje(){
alert("hola "& docu'ent(getle'ent$)*d('te#to')(value)
-
</script>
</head>
<+od)>
<for' id="for'." runat="server">
<div>
<te#tarea id="te#to"> </te#tarea>
<input id="$utton." t)pe="+utton" value="+utton" onclic0
="'ensaje()," /></div>
</for'>
</+od)>
</ht'l>
<head runat="server">
<title></title>
<script language ="javascript">
<!--
function cliente()
{
var cliente = docu'ent(getle'ent$)*d("t#tcliente")(value,

if (cliente == "")
alert("de+e ingresar no'+re del cliente "),

-
//-->
</script>
</head>
<+od)>
<for' id="for'." runat="server" na'e="for'.">
<div>

<asp%1a+el *2="1a+el." runat="server" "e#t="1a+el"></asp%1a+el>
<input id="t#tcliente" t)pe="te#t" /><+r />
<+r />
/n+sp,<input id="$utton." t)pe="+utton" value="+utton"
onclic0="cliente()," /></div>
</for'>
</+od)>
</ht'l>

You might also like