Kevin Powell - CommunityKP-C
Kevin Powell - Community4y ago
4 replies
Jon

Calling a function with params onclick

I'm trying to call a function with a param. As i have it now the function gets called on load, how can i make it wait for the user to click and still have my param?
deletePostBtn.addEventListener("click", deletePost(baseURL))
Was this page helpful?