Property of the LAYER
Please take note that the action in the button property is set to none
Javascript in the button : function chkGuitar(x) { if ( x == "Show Guitar" ) { layerGuitar.style.visibility = "visible"; ourForm.buttonGuitar.value = "Hide Guitar"; } else { layerGuitar.style.visibility = "hidden"; ourForm.buttonGuitar.value = "Show Guitar"; } } input type="button" name="buttonGuitar" value="Show Guitar" onClick = "chkGuitar(this.value)"