I know what i want to do i just dont know how to code it:

i wanna add a button on a html page that allows users to enter a page but i want it to be disabled untill a certain code is entered into a text box whcih when entered enables the button and allows the user to click on it and enter the page can anyone help?