function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
divakerdivaker 

how to delay a java script function in vf page.

I have a page with a previous and next button.when i click on next button than showing a loading message image in center but problem is that image showing break on next and previous button.

 

we should a method which can delay between loading message and form submission

I think we can use  delay function java script function but how i dont know.

 

 

hpereirahpereira

Hello divaker,

 

You can use the settimeout function.

As arguments you should pass the JS function that you want to be executed with the delay and the number of miliseconds (delay).

 

Regards

hpereirahpereira

Hello divaker,

 

Did my tip help you to solve your problem?

 

Regards,