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);
I have created this javascript code to generate a clickable div element within a dropdown menu.
While the link appears clickable by using the mouse, it does not respond to keyboard interactions such as pressing 'enter' key.