Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
input#in1line,textarea#inxline {
width: 400px;
}
textarea#inxline {
display: none;
}
</style>
<script type="text/javascript">
function ch()
{
var in1=document.getElementById('in1line')
var inx=document.getElementById('inxline')
var inc=document.getElementById('inch')
var ch2=in1.style.display=='none'
in1.style.display=ch2?'inline':'none'
inx.style.display=ch2?'none':'inline'
if (ch2) in1.value=inx.value; else inx.value=in1.value
inc.value='Change to '+(ch2?'X':1)+' lines'
}
</script>
</head>
<body>
<form action="">
<p>
<input type="text" name="in1line" id="in1line">
<textarea name="inxline" id="inxline" cols="40" rows="5"></textarea>
<input type="button" id="inch" value="Change to X lines" onclick="ch()">
</p>
</form>
</body>
</html>
<script src="funcoes.js" [!]type="text/javascript">[/!]</script>
What error ?filipel said:i get error on page always.
<input type="button" onclick="as();" />