웹브라우저 » Api

getscriptvariable

Description

웹브라우져 콤포넌트에 설정된 Html의 스크립트내 변수 값을 리턴하는 API이다.

Return Value

Type Description
BOOL 스트립트내 변수 값

Remark

* 동일 출처(same-origin)가 아닐 경우 security exception이 발생할 수 있다.
해당 변수명에 대한 변수가 정의되어 있지 않은 경우, undefined 값이 리턴된다.

Example

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); } }

Viewer Ver.

9.1.1.1

Update Date

20190617