Home >Web Front-end >JS Tutorial >js implements a simple modal window, the background is grayed out_javascript skills

js implements a simple modal window, the background is grayed out_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:58:541393browse

There's nothing to say, it's all JS. An iframe is used to block the page. There is a div layer above the iframe. It is made with JS object-oriented. Some of it is dynamically generated style by JS.
ModeWindow.js

Copy code The code is as follows:



Untitled Page
















Here I come!





























< ;/body>



Online demohttp://img.jb51.net/online/ModeWindow/index.htm
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