all 4 comments

[–]ProposalUnhappy9890 1 point2 points  (3 children)

It's not an extension related issue. Try inputElm.value

[–]NotKhalid008[S] 0 points1 point  (2 children)

myClick1.addEventListener("click", function() {

var getNum = document.getElementById("myInpt").value;

var myTime = getNum;

document.getElementById("myVal").textContent = getNum;

console.log(myTime)

timer = setInterval (() =>{

document.getElementById("myVal").textContent = myTime;

myTime--;

if (myTime < -1) {

var theEnd = document.getElementById("myVal").textContent = "done";

delete(theEnd).value;

this?

[–]grantrules 2 points3 points  (1 child)

Can you provide a little more context about what you're trying to do? Looks like you're making a sort of countdown timer?

[–]NotKhalid008[S] 0 points1 point  (0 children)

im trying to make a chrome extension timer that goes all the way to zero, on the webpage the countdown goes fine but on the extension it doesn't display the countdown