bagaimana menunggu sampai variabel diatur javascript
function waitForElement(){
if(typeof someVariable !== "undefined"){
//variable exists, do what you want
}
else{
setTimeout(waitForElement, 250);
}
}
BlazingShadowsGamer