diff --git a/Tester.HTML b/Tester.HTML index 52137e3..aad2e8f 100644 --- a/Tester.HTML +++ b/Tester.HTML @@ -41,7 +41,11 @@ let resultList = document.createElement('ul'); results.forEach(result => { let listItem = document.createElement('li'); - listItem.textContent = `Title: ${result.title}, Year: ${result.year}`; + let link = document.createElement('a'); + link.textContent = `${result.title} (${result.year})`; + link.href = result.link; // Assuming there's a 'link' property in the dictionary + link.target = '_blank'; // Open link in a new tab + listItem.appendChild(link); resultList.appendChild(listItem); }); searchResultsDiv.appendChild(resultList);