Regarding the use of showModalDialog and showModelessDialog, the window that pops up using window.open in a b/s structure project is blocked by some advertising blocking tools. There is no other way but to use showModalDialog to solve the problem, but the disadvantage of showModalDialog is that It's too troublesome to pass values between pages (there are two ways to pass values), but there is really no other way to solve this interception problem, the only way is to use this. The code was written in just two strokes, but a problem was discovered when debugging the code. The content in the window that popped up using showModalDialog was always the content displayed when the page was accessed for the first time. From the beginning, I suspected that it was the page cache called by the form. Finally, single-step tracking and debugging also proved that the problem is indeed the read page cache. This shows that when using showModalDialog and showModelessDialog to make pop-up forms in asp.net, it is best to add Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
to clear the cache. Use asp, php, js, vbscript to test the showModalDialog method and there is no need to clear the cache. You can use it with confidence. Regarding showModalDialog, you can refer to the detailed introduction I found below
Usage experience of showModalDialog and showModelessDialog
1. What is the difference between showModalDialog and showModelessDialog?
ShowModalDialog: After being opened, the input focus will always be maintained. The user cannot switch to the main window unless the dialog box is closed. Similar to the operation effect of alert.
ShowModelessDialog: After being opened, the user can randomly switch the input focus. It has no effect on the main window (at most it is blocked for a while. :P)
2. How to prevent the hyperlinks in showModalDialog and showModelessDialog from popping up new windows?
Just add
3. How to refresh the content in showModalDialog and showModelessDialog?
In showModalDialog and showModelessDialog, you cannot press F5 to refresh, and the menu cannot pop up. This can only rely on javascript. The following is the relevant code:
reload...
Replace filename.htm with the name of the web page and then Put it into the webpage you open and press F5 to refresh. Note that this must be used in conjunction with
Note: If you want to refresh automatically when accessed, you can set a record variable on the opened page. When the modal window is opened, set the variable to 1, and then use the above method to refresh the modal window. , when the window is closed, the variable reaches 0.
4. How to use javascript to close the window opened by showModalDialog (or showModelessDialog).
Also cooperate with
5. Data transfer skills of showModalDialog and showModelessDialog.
Example:
Now you need to read or set a variable var_name in a showModalDialog (or showModelessDialog)
General delivery method:
window.showModalDialog("filename.htm",var_name )
] forwardover over in] when read and set in showModalDialog (or showModelessDialog]:
alert(window.dialogArguments)////Read var_name variable
Window.dialogArguments="oyiboy"/ /Set var_name variable
This method is satisfactory, but what if you want to operate var_name and then operate the second variable var_id at the same time? It can no longer be operated. This is the limitation of this delivery method.
The following is the delivery method I recommend:
window.showModalDialog("filename.htm",window)
///No matter what variables you want to operate, only pass the window object of the main window directly
When reading and setting showModalDialog (or showModelessDialog):
alert(window.dialogArguments.var_name) //Read the var_name variable
window.dialogArguments.var_name="oyiboy" //Set the var_name variable
At the same time, I can also operate the var_id variable
> You can also operate on any object in the main window, such as elements in the form object.
window.dialogArguments.form1.index1.value="This is setting the value of the index1 element"
6. Interoperation of multiple showModelessDialog.
The main function of the following code is to move the position of another showModelessDialog within a showModelessDialog.
Part of the js code of the main file.
var s1=showModelessDialog('control.htm',window,"dialogTop:1px;dialogLeft:1px") //Open the control window
var s2=showModelessDialog('about:blank',window,"dialogTop: 200px;dialogLeft:300px") //Open the controlled window
and control part of the .htm code.
s1=showModelessDialog('control.htm',window,"dialogTop:1px;dialogLeft:1px")
Variable access method: window.dialogArguments.s2.dialogTop
This example is just the difference between showModelessDialog and showModelessDialog Through the position operation function between showModelessDialog, through this principle, the respective display pages can be controlled between showModelessDialog, variables and data can be transferred, etc. This depends on your performance.

R55600搭配华硕哪个主板华硕ROGStrixB550-FGaming主板是一个非常出色的选择。它与Ryzen55600X处理器完美兼容,并提供出色的性能和功能。该主板具备可靠的供电系统,可支持超频,并提供丰富的扩展插槽和端口,满足日常使用和游戏需求。ROGStrixB550-FGaming还配备了高品质的音频解决方案、快速的网络连接和可靠的散热设计,确保系统保持高效稳定。此外,该主板还采用了华丽的ROG风格,配备了华丽的RGB照明效果,为您的计算机增添了视觉享受。总而言之,华硕ROGStri

赛扬g4900和i36100哪个好当涉及到赛扬G4900和I36100这两款处理器时,毫无疑问,I36100的性能更胜一筹。赛扬处理器通常被视为低端处理器,主要用于廉价笔记本电脑。而I3处理器则主要用于高端处理器,其性能非常出色。不论是玩游戏还是观看视频,使用I3处理器都不会出现任何卡顿情况。因此,如果你有可能,尽量选择购买英特尔I系列处理器,特别是用于台式机,这样你就能畅享网络世界的乐趣了。赛扬G4900T性能怎么样从性能方面来看,奔腾G4900T在频率方面表现出色,相比之前的版本,CPU性能

航嘉s980和包豪斯哪个好航嘉(Huntkey)S980和包豪斯(BeQuiet)是两个不同品牌的电脑电源供应器(PSU)制造商。选择哪个更好取决于您的需求和个人偏好得到了消费者的认可和好评。他们的产品广泛应用于个人电脑、服务器、工业设备等领域。航嘉致力于提供高质量的电源产品,不断推出新的技术和创新的设计。他们的产品经过严格的质量控制和测试,确保能够稳定、高效地为设备提供电力。航嘉还注重环保和节能,努力减少对环境的影响。他们的电源供应器符合国际标准,并获得了多项认证和奖项。作为一家信誉良好的品牌

技嘉主板GA78LMTS2关机后鼠标和键盘灯都亮着怎么关掉啊求助请检查BIOS中是否有"Deeppoweroffmode"模式,即深度掉电模式。该选项位于BIOS的Power设置选项中。如果将此选项设置为启用,关闭计算机后设备将不会亮起技嘉主板dled和led的区别区别如下:1、位置不同:直下式DLED是在液晶面板的后面,LED灯是以矩阵排列;侧入式LED则是将LED灯安装在面板的边框处,使光源从侧面照射出来2、节能:侧入式LED电视比直下式DLED电视更省电DLED和LED的区别在于,DLED

Twoelementsgivingthemaximumsuminanarraymeans,wehavetofindtwolargestarrayelementswhichwilleventuallygivethemaximumsumpossible.InthisarticlewewillseehowwecanfindthemaximumsumoftwoelementsinJava.ToshowyousomeinstancesInstance-1的中文翻译为:实例-1Supposewehaveth

es300h行政版跟卓越版区别ES300h的行政版和卓越版之间有着9.9万的价格差异,同时在配置上也有很大的区别。行政版车型配备了235/45R18的轮圈,而卓越版则是215/55R17的轮圈。在配置方面,卓越版相比行政版多出了许多功能,包括并线辅助、360全景影像、倒车车测预警系统、悬架软硬调节、电动后备箱、感应后备箱、方向盘加热、记忆、HUD数字抬头显示、前排手机无线充电、真皮座椅、后排座椅加热、前排座椅通风、座椅记忆、GPS导航以及马克莱文森音响。es300h低配和中配区别es300h的低

加密货币市场持续发展,为投资者带来不断涌现的投资机会。新币上市总是备受关注,而2025年2月更是新币扎堆上市的月份,为投资者提供了丰富的选择。2025年2月值得关注的加密货币:不容错过的潜力项目本文将重点介绍五款即将在2月推出的加密货币项目,无论您是经验丰富的投资者还是新手,都能从中找到感兴趣的项目。它们分别是DogeLife($DOGEL)、DistriBrain($BRAIN)、比特币美元($BTD)、PiINU($PINU)和PIMEME($PIMEME)。请做好准备,将这些日

oppoa5高配和低配主板通用不根据OPPO官方介绍,OPPOA5有两个版本,分别是高配和低配。这两个版本的主板可能存在一些差异,因此高配和低配的主板可能不能通用。如果需要更换主板,建议与OPPO公司官方客服联系,以获取准确的信息和帮助。d高配和低配的区别高配和低配之间的区别主要取决于个人的选择。如果你喜欢使用高配产品,价格会相对较高。而如果你偏向低配产品,价格则会较低。此外,个人的用途也是一个重要的考虑因素。有时候,高配产品可能会有许多功能是你并不需要的,此时选择低配产品更能提高性价比,使用起


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool