// JavaScript Document

var windowloc=window.location.protocol+"//"+window.location.hostname+window.location.pathname;  metaCollection = document.getElementsByTagName('meta'); sitekeywords="nok"; for (i=0;i<metaCollection.length;i++) { nameAttribute = metaCollection[i].name.search(/keywords/); if (nameAttribute!= -1) { sitekeywords=metaCollection[i].content; break; } else sitekeywords="nok"; } 
var param=windowloc+","+sitekeywords;  chrome.extension.sendRequest({greeting: param}, function(response) {  });