Pinterest "Pin It" button secrets
Dissecting "Pin It" button
- A random number is passed as a parameter to the above JS
- Next it adds the script element to the current page - Now we are all set to download and execute the JS file sitting on the server.
- A popup window appears with all the pinnable thumbnail images - this is the output of the smart work performed by the JS file when it gets invoked. It is smart enough to hold any complex logic to influence the behavior of the page being browsed.