hi,
i stumbled accross a piece of coding in the between the <head> tags where you normally put your keywords etc and one website i saw had this piece of javascript there.
Can anyone let me know what this is actually doing please?
Thanks
i stumbled accross a piece of coding in the between the <head> tags where you normally put your keywords etc and one website i saw had this piece of javascript there.
Code:
<script language="JavaScript" type="text/javascript">
<!--
//Keyword search function
function searchfocus() {
searchform.Query.focus();
}
//Compute search function
function computesearch() {
var pathValue = "/websites/UK/uk.nsf/SearchResults/?SearchView&Query=";
var queryValue = document.searchform.Query.value;
location = pathValue + queryValue;
}
function windowOpener(url, name, args) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name,args);
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url, name,args);
}
}
popupWin.focus();
}
// -->
</script>
Thanks
Comment