que hace este codigo?
Publicado por claudia (3 intervenciones) el 13/03/2007 15:23:00
Indique que hace el siguiente código JavaScript cuando se precionan los botones
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmins=http://www.w3.org/1999/xhtml>
<head>
<title>Ejercicio 1</title>
<script type=”text/javascript”>
function button1()
{
document.getElementById(“mySelect”).disabled=true
}
function button2()
{
document.getElementById(“mySelect”).disabled=false
}
</script>
</head>
<body>
<form>
<select id=”mySelect”>
<option>Manzanas</options>
<option>Peras</options>
<option>Bananas</options>
<option>Naranjas</options>
</select>
<input type=”button”onclick=”button1()” value=”button1”>
input type=”button”onclick=”button2()” value=”button2”>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmins=http://www.w3.org/1999/xhtml>
<head>
<title>Ejercicio 1</title>
<script type=”text/javascript”>
function button1()
{
document.getElementById(“mySelect”).disabled=true
}
function button2()
{
document.getElementById(“mySelect”).disabled=false
}
</script>
</head>
<body>
<form>
<select id=”mySelect”>
<option>Manzanas</options>
<option>Peras</options>
<option>Bananas</options>
<option>Naranjas</options>
</select>
<input type=”button”onclick=”button1()” value=”button1”>
input type=”button”onclick=”button2()” value=”button2”>
</form>
</body>
</html>
Valora esta pregunta


0