Avatar of tangteng78
tangteng78
Flag for Malaysia asked on

How to check for postback using javascript?

Hi,
Is there a way to check for postback in Javascript, just like in ASP.NET that uses the page_load events (see below)?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
           If Not Page.IsPostBack Then
                'DO something here, if page is not postback
           End If
End Sub

Open in new window

JavaScript

Avatar of undefined
Last Comment
contactkarthi

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
contactkarthi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck