Home >Web Front-end >HTML Tutorial >How should I write this code? About calling js_html/css_WEB-ITnose
If the content of xxx.js is
document.writeln("<iframe src=\"http://www.xxx.com\" ></iframe>");
<script src="/xxx.js" type="text/javascript"></script>
<p id="xxx"></p>
<div id="xxx"></div>
I don’t understand what you mean
Reference: load scripts asynchronously
Use the above page A certain method is then triggered in a certain event of p or div, such as click
I’m confused, what are you doing?
Anyway, you want to reference the .js file in your page You have to use 3f1c4e4b6b16bbbd69b2ee476dc4f83a to import it. Your 1a205321ccf54e8cd5d261c9d3aee604 is an id. What does it have to do with the referenced .js file?
If you want to import cd431ee34ce7388984e761d7a1c978a9 To perform any operation, you have to add corresponding events to e388a4556c0f65e1904146cc1a846bee and call js functions.