We know if we want to use the Modal dialog box in the BS system, we must use the WINDOW.SHOWMODALDIALOG () method, showModalDialog () method is used to create a modal dialog box showing HTML content, this document is used Solution to issues generated when using ShowModalDialog () to produce a modal dialog box, this document applies to ASP, PHP, JSP and other web technology, and I will use JSP below. Note: This document does not involve the showModalDialog () method, please refer to the MSDN document, and the document with Kingerq users http://dev.9cbs.net/develop/Article/44/44896.shtm
We first write a very familiar use of SHOWMODALDIALOGOG (), we rewrite the alert () method of WINDOW in JavaScript. We do what we do first is to create a file alert.jsp code is: <% @ Page ContentType = "text / html; charset = GBK" language = "java" pageEncoding = "gbk"%> <% request.setcharacterencoding ("gbk"); string msg = request.getParameter ("msg");%>