zoukankan      html  css  js  c++  java
  • .net技术总结

    1:javascript页面跳转常用代码

         按钮式:

      <INPUT name="pclog" type="button" value="GO" onClick="location.href='http://9ba.cn/'">

      链接式:

      <a href="javascript:history.go(-1)">返回上一步</a>

      <a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>

      直接跳转式:

      <script>window.location.href='http://www.9ba.cn';</script>

      开新窗口:

      <a href="javascript:" onClick="window.open('http://www.9ba.cn/post/235.html','','height=500,width=611,scrollbars=yes,status=yes')">云上的日子</a>

    html标签:

    <input type="text" name="txt"  onkeydown="event.returnValue=false;" onpaste="return false" />

    服务器控件:

    <asp:TextBox ID="txt" runat="server" onkeydown="event.returnValue=false;" onpaste="return false"></asp:TextBox>

    用FileUpload经常要禁止手动输入:

    <asp:FileUpload ID="fu" runat="server"  onkeydown="event.returnValue=false;" onpaste="return false" />

  • 相关阅读:
    惊讶
    BLOG休假
    因考试得福
    Shape of My HeartSting !
    一个月的第一天了
    BLOG开张喽~~~
    该走了
    脏话
    EditText的属性
    游戏引擎
  • 原文地址:https://www.cnblogs.com/asia/p/1495256.html
Copyright © 2011-2022 走看看