Disable Browser’s Back button

function disableBackButton()
{
    window . history . forward();
}

setTimeout("disableBackButton()", 0);

Author: Tahir Yasin

Tahir is a Passionate Web Developer from Lahore, Pakistan and a guy with NEVER-STOP-LEARNING attitude who keeps an eye on emerging technologies and customer trends.

Leave a Reply

Your email address will not be published. Required fields are marked *