<form> <input type=button value="表示/非表示" onclick="locationbar.visible = ( locationbar.visible ) ? false : true"> </form>