| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

How to dynamically create a script on the fly

Page history last edited by Dorai Thodla 15 years, 11 months ago
From Javascript Phrasebook
 
<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script language="JavaScript"
type="text/javascript">
var s = document.createElement("script");
s.setAttribute("type", "text/javascript");
s.setAttribute("language", "JavaScript");
s.setAttribute("src", "script.js");
document.getElementsByTagName("head")[0].appendChild(s);
</script>
</body>
</html>

Comments (0)

You don't have permission to comment on this page.