Most oven cleaners are perfectly suitable for use with both gas and electric ovens. To make sure you clean your gas oven safely, always check that it is switched off before you start. To be extra sure, you could also take the extra step of turning the gas supply off at the mains.
You should also be careful not to get the heating elements of your gas oven wet, as this can cause damage.