I am working on a website and I want to change editButton.textContent = 'Edit';
so that it displays an image instead of text.
var editButton = document.createElement('button');
editButton.textContent = 'Edit';
After exploring various online resources, none of the tutorials were able to assist me with this specific request.
Do you have any suggestions on how I can achieve this?