Is page back possible without TAU library?

Is page back possible without TAU library?

BY 03 Sep 2018 Web Application Development

Without “TAU lib” back function doesn’t work. I don’t want use the whole TAU lib because the really strange UI. But I have to use back function.

window.history.back(); not work…

Should I use the “location.replace();” ?? It’s not efficient.

back.js is below.

( function () {
    window.addEventListener(‘tizenhwkey’, function( ev ) {
    console.log(‘뒤로 가기’);
        if( ev.keyName === “back” ) {
            var activePopup = document.querySelector( ‘.ui-popup-active’ ),
                page = document.getElementsByClassName( ‘ui-page-active’ )[0],
                pageid = page ? page.id : “”;
            screen.lockOrientation(“portrait-primary”);
            if( pageid === “mainpageList” && !activePopup) { //로그인화면에서 끄기?
        try {
                tizen.application.getCurrentApplication().exit();
            } catch (ignore) {
            }
            }else {
                window.history.back();
            }
        }
    } );
} () );
 
 
Written by