How to launch the contact form using a link or JavaScript function

  1. Home
  2. >
  3. How to launch the contact form…

To learn more about how to use the My Sticky Elements plug-in click here, and don’t forget to check our entire My Sticky Elements knowledgebase to make the most out of it.

For example, if you have an icon for your working hours in your My Sticky Elements widget and want it to pop up when your website visitors click on ”Check our working hours here”, your link will look like this: 
“<a href=”javascript:launch_mystickyelements(2);”>Check our working hours here</a>”
Important!: depending on which icon on your widget you want the JavaScript function to open, you need to add the correct number in the brackets of the code. In the example above, the business hours icon is on position 2, so you need to add ”2” between the brackets in your JavaScript function:


You can also launch your My Sticky Elements widget using an image. To do that, add an image of your choice in a post or page, then copy the link of the image and add it in place of ”your image link here”.
“<a href=”javascript:launch_mystickyelements(1);”><img src=”your image link here.png” </a”


For example you may want to open the contact form tab through an image. 
In this example, the contact form icon is on position 1, so you need to add ”1” between the brackets in your Javascript function:


You can use multiple functions at the same time to launch the contact form from an image and the working hours button through a text, following the examples above.

Still have questions? Ping us at our Facebook group, and we’d love to help out!