G
G
gotohell2016-12-22 14:38:41
JavaScript
gotohell, 2016-12-22 14:38:41

Ajax script loading?

I shoveled the entire Internet but did not find a solution, you need to load scripts using ajax.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Денис Дерепко, 2016-12-22
@uDenX

Плохо искали

R
Rou1997, 2016-12-22
@Rou1997

var script = document.createElement('script');
script.src = 'адрес скрипта';
document.getElementsByTagName('head')[0].appendChild(script);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question