Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function cleartext () {
if ( clicked ) {
document.form1.textarea.value='';
document.form1.textarea.onclick='';
};
clicked=false;
};
</script>
</head>
<body onload="javascript: clicked=true;">
<form name="form1" method="post" action="">
<textarea name="textarea" cols="50" rows="10" onclick="cleartext()">test test test</textarea>
</form>
</body>
</html>
<form name="form1" method="post" action="">
<textarea name="textarea" cols="50" rows="10" onfocus="this.value=(this.value=='text text')?'':this.value" onblur="this.value=(this.value=='')?'text text':this.value">text text</textarea>
</form>
<script>
function delete_value(form_element) {
form_element.value="";
}
</script>
<form name="form1">
<input type="text" name="text1" id="text1" value="enter a line" />
<a href="javascript: delete_value(document.form1.text1);">del</a>
</form>
<script>
function delete_value(form_element) {
form_element.value="";
}
</script>
<form name="form1">
<input type="text" size="10" name="asd" maxlength="15" value="asd">
<a href="javascript: delete_value(document.asd.text1);">del</a>
</form>