skip to Main Content

How to insert HTML div tags into JavaScript code?

Please help me add the html div tag in the script const button = this.createElement("div"); button.classList.add("start_button"); let border = 0; if (typeof this.config.backgroundImg === "string") { button.classList.add("button"); border = 1; } button.innerText = (typeof this.config.startBtnName === 'string') ? this.config.startBtnName :…

VIEW QUESTION
Back To Top
Search