Answer the question
In order to leave comments, you need to log in
How to download VKontakte widgets on click?
To load group widgets, comments and votes, you need to add 2 scripts to the head, and the widget code itself to the body. Is it possible to somehow load all this in the same sequence, but only by clicking on the button? I can create and insert scripts into a document, but how can I make them initialize one after another?
Answer the question
In order to leave comments, you need to log in
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', 'jquery.min.js');
document.head.appendChild(script);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question