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.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/ecmascript">
function check() {
var object = document.pole.text.value;
alert(object);
}
</script>
</head>
<body>
<form name="pole">
<input type="text" name="text" id="ppp" />
<input type="button" onclick="check()" />
</form>
</body>
</html>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/ecmascript">
function check() {
var object = document.getElementById('ppp').value;
alert(object);
}
</script>
</head>
<body>
<form name="pole">
<input type="text" name="text" id="ppp" />
<input type="button" onclick="check()" />
</form>
</body>
</html>
var obj = new Object();
alert(obj);//Извежда ти че това е обект
obj.color = "red";
alert(obj.color);//Извежда red
obj.method = function(){
alert("adad");
}
obj.method();//Извежда adad