Button click to wait for button click
<p>I have two buttons: Btn1 <code>&lt;input type="button" class="buttons" value="Test"&gt;</code>
and Btn2 <code>&lt;input type="button" class="buttons" value="Test2"&gt;</code>. I want to be able to click on Btn1 and Btn1 waits for the second button to be pressed and if the second button (Btn2) is pressed the output is Test Test2 is this possible?
I know how to do the button clicks of course but I can't find a solution for the first button to wait for the second one</p>