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

Multi tool use


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>
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.
I think you need
prompt
: w3schools.com/jsref/met_win_prompt.asp– juzraai
12 secs ago