How to set button state to active on page load

  • 18 April 2019
  • 2 replies
  • 12 views

I would have thought that setting a button to active on page load was a simple thing to do-but I’m totally stumped! All I want is on page load I want a button to be set to it’s active state.

Any help would be greatly appreciated!! Thanks in advance 🙂


2 replies

Userlevel 7
Badge +3

Hi @Bethany_Pavinich,

Can you elaborate a bit more on your need to have a button be set to active on page load?
(I’m failing to see the need for this but maybe I’m missing something)

On the other hand, Unbounce gives you control over the normal, hover and active states of a button. You can always design your normal state as you would your active so it would appear active.

Best,
Hristian

Thank @Hristian- I just had one of those ‘duh’ moments. All I needed to do was change it so that the button the page appears active (aka change the color). DERP

Reply