paramToExternalFile = 'all';
var div = document.createElement('div');
div.style.background = '#D8D8D8';
div.innerHTML = '<a href=' + xml_list_externalFile_SNS1 + paramToExternalFile + '/' + letters + '>View All</a>';
div.id = 'view_all';
div.className='optionDiv_sns';
ajax_optionDiv_SNS.appendChild(div);
This is the javascript for creating a div in dropdown, but I want this div to be clickable.
As you can see I have given the link but it will work only when I click by using mouse on that link but it won't work when I press 'enter'