브라우저 History 정보 갯수를 반환한다
Parameters | Type | Description |
---|---|---|
nMoveDelta | short | 브라우저 히스토리 이동 상대값 |
Type | Description |
---|---|
BOOL | 정상 처리 여부 |
nMoveDelta 파라미터 값은 현재 브라우저 히스토리를 기준으로 이동 갯수를 지정한다. 양수를 지정하는 경우 앞으로 이동하며, 음수를 지정하는 경우 이전으로 이동한다.
function btn_test()
{
var history_length, curr_state;
history_length = screen.browserhistorylength();
factory.consoleprint("history_length = " + history_length);
curr_state = screen.browserhistorycurrstate();
if (history_length > 1) {
screen.browserhistorygo(-1); // 한번 뒤로 이동
}
}