브라우저 History 정보 갯수를 반환한다
Type | Description |
---|---|
short | 브라우저 히스토리 정보 갯수 |
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); // 한번 뒤로 이동
}
}