Home > Web Front-end > JS Tutorial > Asynchronously loading script code_javascript skills

Asynchronously loading script code_javascript skills

WBOY
Release: 2016-05-16 18:12:00
Original
1172 people have browsed it

Asynchronously loading scripts through iframe
Asynchronously requesting scripts from another page will not be executed, and only the original HTML file will be returned, because the returned text has not been parsed and executed by the browser.
Look at the code
a1.html

Copy the code The code is as follows:

< ;html xmlns="http://www.w3.org/1999/xhtml">

Untitled page







a2.html
Copy code The code is as follows:

< ;html xmlns="http://www.w3.org/1999/xhtml">

Untitled page

<script> <br>alert('I am an asynchronous script'); <br></script>


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template