Home >Web Front-end >HTML Tutorial >How should I write this code? About calling js_html/css_WEB-ITnose

How should I write this code? About calling js_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:55:29980browse

If the content of xxx.js is

document.writeln("<iframe src=\"http://www.xxx.com\" ></iframe>");

, the call in HTML is usually
<script src="/xxx.js" type="text/javascript"></script>


How to use
<p id="xxx"></p>

or
<div id="xxx"></div>

Or other methods, in short, don’t use ba96a2c3594317e1208ec9ff6c70a4d32cacc6d41bbb37262a98f745aa00fbf0.


Reply to discussion (solution)

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn