点击按钮打开弹出窗口

编程入门 行业动态 更新时间:2024-10-28 02:26:43
本文介绍了点击按钮打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好 如何点击按钮点击asp中的弹出窗口.... 谢谢&问候 Srishti

解决方案

在客户端,你可以通过调用像

function alertpopup(){ alert(' 弹出'); }

在客户端点击按钮调用此方法。

打开一个PopUp 要打开一个弹出窗口,JavaScript命令是window.open() 下面是一个打开一个新弹出窗口的函数接受要打开的页面的URL的窗口。

var PopUpObj; function popUp(url) { PopUpObj = window .open(url); PopUpObj.focus(); }

例如: popUp(Default.aspx)

< script 类型 = text / javascript > function basicPopup(){ popupWindow = window.open(xsl2.aspx,'popUpWindow','height = 300 ,width = 600,left = 100,top = 30,resizable = No,scrollbars = No,toolbar = no,menubar = no,location = no,directories = no,status = No'); } < / script >

Hello How to open pop up window in asp on button click.... thanks & Regards Srishti

解决方案

In client side you can do that by calling a js method like

function alertpopup(){ alert('pop up'); }

call this method on client click of the button.

Open a PopUp To open a pop up window the JavaScript command is window.open() Below is a function that opens a new popup window which accepts the url of the page to be opened.

var PopUpObj; function popUp(url) { PopUpObj = window.open(url); PopUpObj.focus(); }

example: popUp("Default.aspx")

<script type="text/javascript"> function basicPopup() { popupWindow = window.open("xsl2.aspx", 'popUpWindow', 'height=300,width=600,left=100,top=30,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No'); } </script>

更多推荐

点击按钮打开弹出窗口

本文发布于:2023-08-06 02:15:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1309460.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出窗口   按钮

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!