웹브라우져 콤포넌트에 설정된 Html의 스크립트내 변수 값을 리턴하는 API이다.
Type | Description |
---|---|
BOOL | 스트립트내 변수 값 |
* 동일 출처(same-origin)가 아닐 경우 security exception이 발생할 수 있다.
해당 변수명에 대한 변수가 정의되어 있지 않은 경우, undefined 값이 리턴된다.
function bb_on_mouseup(objInst)
{
ret = web.getscriptvariable("var_in_page");
if(ret === undefined) {
factory.consoleprint("variable is not defined");
}
else {
factory.consoleprint("getscriptvariable = " + ret);
}
}