We need more information to try and help you. You can't just say it stays in the room and expect us to figure out why. I click your button and nothing happens, the window is still scrollable which means the game is not hanging/crashing. Did you try and create a blank project, create a button with a simple button press and a room_goto() function? Did it work? If yes, it's a problem with your code, if no, then give us some more details so we can help debug your issue.
Did you even bother to debug your project in HTML5? Usually when this happens, it's a problem with YOUR code. HTML5 has limitations, you need to stick to them, it doesn't cater for just anything like the native platforms. Take a read through
this, it details the differences and issues you would run into using the HTML5 module and what precautions to take.