现在的位置: 首页 > 综合 > 正文

后台写js,弹出窗口,字体变大,以及保存文本框信息

2012年12月19日 ⁄ 综合 ⁄ 共 546字 ⁄ 字号 评论关闭

'1结合2,能解决弹出窗口后字体不变的问题
       
'System.Web.HttpContext.Current.Response.Write("<script>alert("""
& msg &
""")</script>") '1
       
'System.Web.HttpContext.Current.Response.Write("<script>document.location=document.location;</script>")
'2

 

 

      
'3结合4,能解决弹出窗口字体不变的问题,同时,解决保留文本框原录入信息的问题
       
System.Web.HttpContext.Current.Response.Write("<!DOCTYPE
html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>")
'3
       
System.Web.HttpContext.Current.Response.Write("<script>alert("""
& msg &
""")</script>") '4
       

抱歉!评论已关闭.