Hey there, I've got a JavaScript array of URLs in my content.js file. I want to show these URLs in separate input boxes on a different page called display.php. Each input box will have edit and delete buttons. Any changes made by the user should update the content.js file.
I've successfully displayed all the URLs in the input boxes. Now, when a button is clicked, it triggers a function.
My query is, what would be the most efficient way to update the array in the content.js file? The file only contains one array. I'm currently exploring file handling but that means the content.js must always adhere to a strict format. Is there a more effective method to modify the array contents or delete rows without using file handling?