I am trying to add javascript element to my web page, but the thing is I do not want to add it in html , I want to add it from javascript / em>.
I had tried something like document.write
,
but this replaces the whole page so what I want is to add this <script https://maps.googleapis.com/maps/api/js?key=" + API_KEY/>