. Net literacy-web page dialog box application,. net literacy web page dialog box

Source: Internet
Author: User

. 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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.