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>
<title> Добре дошли!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="post" name="sender">
<input id="fld" type="text" />
<input onclick="sendme();" type="button" value="send"/>
</form>
<script type="text/javascript">
function sendme(){
var inputche = document.getElementById('fld').value;
if(inputche == 'internet'){
document.location = 'http://www.google.bg/';
}
};
</script>
</body>
</html>
Намери си в нета и прочети основни неща за javascript и ще разбереш.Teodotko каза:Ако искам да добавя още команди какво трябва да добавям ?
if(inputche == 'internet'){
document.location = 'http://www.google.bg/';
}
if(inputche == 'internet'){
document.location = 'http://www.google.bg/';
}
if(inputche == 'abv.bg'){
document.location = 'http://www.abv.bg/';
}