DEV Community

Discussion on: Send automated Discord messages through Webhooks using JavaScript

Collapse
 
teodorv2 profile image
TEODORv2

Hi! So I wanted to enter the content directly from the html page, so I made a label, but I don't really know how to link the label's entered input to the content value. Anyone got any ideas? I'm really new to html, css and java so I don't really know much.

Collapse
 
oskarcodes profile image
Oskar Codes

Set the content field to the value of your input:

content: document.querySelector("input").value
Enter fullscreen mode Exit fullscreen mode