Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1279872

    cmdev
    Participant

    I have a button that loads a page in a new window.

    I’d also like to add an onClick function to define the size of the new window. Exactly:

    Here is the full link I need to add on a X theme button.

    #1279892

    Thai
    Moderator

    Hi There,

    Please add this code to the href field of your button:

    javascript:x_onclick();

    After that adding the following code under Settings > Custom JS:

    function x_onclick(){
      alert(123);
    }

    Hope it helps 🙂