. Net literacy-web page dialog box application,. net literacy web page dialog box
In B/S projects, more and more functions need to be added to the page. However, if a page carries such a function, the page's appearance and even experience friendliness will be greatly reduced. however, if you want to hide some elements that are not very necessary, you can click the elements to display them in the corresponding form. This design can reduce the size of the webpage page, to enable web designers to develop their own imagination and design a more user-friendly user UI.
As shown in:
Prompt box:
Warning box:
The above web page dialog box is familiar to everyone. The most common is the pop-up login/registration box, such as Baidu:
There are also some, such as modifying input:
The dialog page is also a pop-up box that we often call. The pop-up page can also be customized. I believe you have discovered that the dialog box design has great potential to be explored. the following describes the implementation method.
Window. showModalDialog function is mainly used in javascript to open an IE mode window, and then return the window. returnValue attribute as the return value.
Home page:
<span style="font-family:Microsoft YaHei;font-size:14px;"><pre name="code" class="html"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Subpage:
<Span style = "font-family: Microsoft YaHei; font-size: 14px;"> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
In addition to boolean and integer values, this returnValue can also be a js array to transmit a large amount of data. On the. net platform, js arrays are commonly used transfer objects. Through serialization, you can easily transfer data between two pages.