Home > Web Front-end > JS Tutorial > body text

Downloading files in JAVASCRIPT mode window cannot receive iframe stream_javascript skills

WBOY
Release: 2016-05-16 17:20:30
Original
977 people have browsed it

In an open modal window, if you want to use the modal window to accept the server's stream, you usually need to hide an iframe; sometimes, you then use the form of iframe.src to make the request; sometimes, you find that the server cannot receive the iframe's stream during downloading. , because the src redirection event of the iframe is not triggered in the modal window, and ordinary windows do not have this problem.

Specific solution:

Hide an iframe in the parent window of the modal window, and the download address points to this iframe.

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