How can I put an input in the alert() box?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How can I put an input in the alert() box?



I have a question that i want to insert an input in an a alert box, what thing I have to do for arriving to the result, I need an another tag, attrib, special properities, etc...
Thanks.
I think coud be like this:




<!DOCTYPE html>
<html>
<head>
<title>example</title>
</head>
<body>
<script type="text/javascript">
alert("<input></input>");
</script>
</body>
</html>





I think you need prompt: w3schools.com/jsref/met_win_prompt.asp
– juzraai
12 secs ago




prompt









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

fNEC8ss,2zruWJLx9PcLrjksIJaCb6uo7AEN860SYk4SRmu,aVrgVKxp
oA Y3qlRR6fZE

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results