彈出窗口示例

来源:互联网 发布:台湾人 大陆网络发达 编辑:程序博客网 时间:2024/04/27 22:26


第壹個頁面: (User_skill01.aspx要打開新開的頁面) 第一個頁面的Buttion 裡面

this.btnedit.Attributes.Add("onclick","javascript:windowform()");

在第二個頁面中<base target ="self">

在html中加入


<script language="javascript">
   history.go(1);
         window.moveTo(0,0);
         window.resizeTo(screen.availWidth, screen.availHeight);
         function windowform()
         {                
window.open("User_skill01.aspx","專長修改頁

面",'height=500,width=750,top=10,left=20,toolbar=no,menubar=no,scrollbars=no,

resizable=no,location=no, status=no')
         }
</script>

原创粉丝点击