getAttribLocation

open external fun getAttribLocation(program: WebGLProgram, name: String): GLint(source)

MDN Reference