Send user to dynamic url based on his imput

Thanks for reading!
How can I create a button that will send user to custom link based on his imput on a placeholder?
For example, if he types 123 on the placeholder, when he clicks the button will be sent to .com/123 ?
Thnaks all!