How To Make Online Refer Script

how to make online refer script

How to call javascript function from