document.addEventListener('DOMContentLoaded', function() {
var checkPageButton = document.getElementById('life');
checkPageButton.addEventListener('click', function() {
chrome.tabs.getSelected(null, function(tab) {
var url= ?????
alert(url);
});
}, false);
}, false);