Gmunky Posted April 25, 2007 Share Posted April 25, 2007 I have two buttons on a page ,one is a print screen button and another a search button. The problem is when I press the enter key in the keyboard, the print button is triggered. What's a way so when I press enter, the search button will be activated instead of the print button? Link to comment https://forums.phpfreaks.com/topic/48631-help-with-buttons/ Share on other sites More sharing options...
veridicus Posted April 25, 2007 Share Posted April 25, 2007 Browsers use the first submit-type button within the form. You'll have to switch the order of your buttons on the page. Link to comment https://forums.phpfreaks.com/topic/48631-help-with-buttons/#findComment-238204 Share on other sites More sharing options...
AndyB Posted April 25, 2007 Share Posted April 25, 2007 You'll have to switch the order of your buttons on the page. ... or move the print screen button out of the form. Link to comment https://forums.phpfreaks.com/topic/48631-help-with-buttons/#findComment-238576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.