When considering adding elements to your HTML document, it's important to question why you would include something like an invisible button.
HTML should be used solely for defining the semantics of your content. It should only consist of the actual content you want to display and additional information to explain that content's meaning - nothing related to appearance or behavior.
All styling and functionality concerns should be addressed using CSS and Javascript, never directly within the HTML itself.
If an element is required purely for JavaScript purposes, it should be dynamically added to the document through JavaScript code.
For instance, instead of including prev/next buttons for a JavaScript gallery directly in the HTML, you should just list the images and have the JS script handle the gallery's presentation and navigation buttons.
In your case, mentioning an invisible button with JavaScript actions in the HTML suggests that this element may not belong in the document at all.