#HTML and JavaScript connect

11 messages · Page 1 of 1 (latest)

dusk shoal
#

I was able to write a code that when filled in a const address and const tokenid it gives the mint number of a specific NFT, now i want to show that on my website using a html forum i was able to create. Now i need to connect those 2 so they work. I hope i was able to make const address and tokenid work, but is someone able to help me complete this. I have no idea how i should finish. The link to my code is here: https://gist.github.com/Blueboynl/f6ef979c6a31112fb1c326b400b9a308. If i was able to make const address and tokenid work with the forum i only need to make sure the button works and the ouput is shown on the site. If you need more information let me know. Hope someone is able to help me.

chilly rain
#

you can use the document.createElement to creat a new HTML element, then use document.appendChild to add it to you your document

#

or you could use a library that will modify the DOM for you

#

like React, & co.

#

also, you should store your code in a repo, not in a gist

dusk shoal
dusk shoal
chilly rain
#

read the doc I sent

dusk shoal