|
-
translation of javascript codes to English language
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"➥
"http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type"➥
content="text/html; charset=utf-8" />
<title>Search example</title>
<script type="text/javascript">
function checkSearch()
{
if(!document.getElementById ||➥
!document.createTextNode){return;}
if(!document.getElementById('search')){return;}
var searchValue=document.getElementById('search').value;
if(searchValue=='')
{
alert('Please enter a search term');
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form action="sitesearch.php" method="post"➥
onsubmit="return checkSearch();">
<p>
<label for="search">Search the site:</label>
<input type="text" id="search" name="search" />
<input type="submit" value="Search" />
</p>
</form>
</body>
</html>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks