In javascript, browser can be moved as following. <form> <input type="button" onClick="window.moveBy(5,0)" value="Move to the right"> </form>