diff --git a/Projects/Bookmarker_App/main.js b/Projects/Bookmarker_App/main.js index d683b4f9e..0b0fefcbb 100644 --- a/Projects/Bookmarker_App/main.js +++ b/Projects/Bookmarker_App/main.js @@ -56,6 +56,7 @@ function fetchbookmarks() {
${bookmarks[i].name}
+ Visit Delete
@@ -64,7 +65,12 @@ function fetchbookmarks() { `; } } - +// Copy selected site's URL to clipboard +function copyToClipBoard(url) { + navigator.clipboard.writeText(url); + // Alert the copied text + alert("URL Copied"); +} // Validate Form function validateform(sitename, siteurl) { if (!sitename || !siteurl) {