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.
.value
.innerHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Добре дошли!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="info">send this information to php file!</div>
<form action="send.php" method="post" name="sender">
<input id="hidden" type="hidden" />
<input onclick="sendme();" type="button" value="send"/>
</form>
<script type="text/javascript">
function sendme(){
var inputche = document.getElementById('hidden'),
info = document.getElementById('info');
inputche.value = info.innerHTML;
document.sender.submit();
};
</script>
</body>
</html>