function getNewsByTitle() {
  var country = window.localStorage.getItem('country');
  country = (country == 'noCountry' || !country) ? '' : country;

  // Sets direction of topics showed under dropdown in pop-up page according
  // to set language in browser.
  $('topics').className = (directionLocale == 'rtl') ? 'topicsRTL' :
      'topicsLTR';

  var topicVal = $('topics').value;

  // Sets Feed URL in case of custom topic selected.
  var keywords = JSON.parse(window.localStorage.getItem('keywords'));
  var isFound = false;
  if (keywords) {
    for (i = 0; i < keywords.length; i++) {
      if (topicVal == keywords[i]) {
      isFound = true;
      feedUrl = DEFAULT_NEWS_URL + '&cf=all&ned=' + country + '&q=' + topicVal +
          '&hl=' + country;
      break;
      }
    }
  }
  if (!isFound) {
    feedUrl = DEFAULT_NEWS_URL + '&cf=all&ned=' + country +
        '&topic=' + topicVal;
  }
  main();
}
Sets the URL according to selected topic(or default topic), then retrieves
feed and sets pop-up page.