Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

I want to reload the page once user click on Project (menu item) in customer portal.

Mohammmad Faiz
Tera Contributor

Hi,

 

I want to reload the page whenever the user click on Project (menu item) in the customer portal.

Screenshot.jpeg

1 REPLY 1

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello @Mohammmad Faiz  ,

The reload() method does the same as the reload button in your browser.

  1. Identify the HTML element for the "Project" menu item. It might have an id or class that you can use.

    It would look something like this:

    document.getElementById('projectMenuItem').addEventListener('click', function() {
        location.reload();
    });