How to include custom JavaScript code in the widget?

You can include any JavaScript code in your widgets. To include custom JavaScript code please create a file on your server with extension .js and make sure it is publicly accessible (you should be able to type in path for that file in browser from Internet). Then on the "Edit UI" page of your Setup flow you can specify path to this file (make sure the path starts with http:// or https://) in the Custom JavaScript field. If you would like to execute the code only on specific pages/views of the widget then you can use contentReady event from YUI.

Looking for a Referral or a Loyalty Program?
NextBee has robust and feature rich platform
We guarantee your ROI
No long term contract to sign
Hassle free zero cost IT setup

Related Topics