Is there a way to check if the browser's 'Back' button has been clicked?

If it's an independent web browser I think u can capture the window's title as when u click back button the title will change.

This will do the work:

Public Class Form1
    Dim ButtonClicked As Boolean = False

    Private Sub BackButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Click
        WebBrowser1.GoBack()
        ButtonClicked = True
    End Sub
End Class

Then you can do what you want with the code. Another example:

Private Sub Anything_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Click
        ' Checks whether the button was clicked
        If ButtonClicked = True Then
        ' Insert what you want here
        End If
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.