The WebGLRenderingContext.getTexParameter() method of the WebGL API returns information about the given texture.
WebGLRenderingContext.getTexParameter()
external JSAny? getTexParameter( GLenum target, GLenum pname, );