<HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script> function removeSubmitFocus(){ document.all('pass').outerHTML="<input type=text name='"+document.all('pass').name+"' value='"+document.all('pass').value+"'>" } </script> </head> <body style="border:0;margin:5px;" class="bodyWindow" scroll="auto"> <input type="button" name="hidden1" value="将password改为text " onclick="removeSubmitFocus()" ><span style="color:red">先在密码框中输入文字效果更明显</span> <input type=password name="pass" id="pass"/> </body> </html>
详细解决方案
动态改动input标记的type属性 如password改为text
热度:169 发布时间:2012-11-05 09:35:12.0
相关解决方案
- 新手,请问input type=text有关问题
- 不走"<script type='text/javascript'>"标签咋回事
- JSP 页面乱码 页面起首已设置 contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
- input type=text 替空时 ,为什么不为null
- <script type="javascript/text">的有关问题
- 【jsp】jsp中java代码段中怎么获取本页面<input>标签的值
- unsupported content type in editor解决思路
- <html:text>property的有关问题
- 关于<html:text>相关的有关问题
- textarea和 input 展示的有关问题
- <input text>怎么禁止键盘输入但允许控件输入
- 怎样用android重写j2me,player里的createPlayer(InputStream stream, String type)解决方案
- linux上在后台得到<input>框值的奇怪有关问题
- <input type="file" name="filename">该如何处理
- struts2 action中除了返回SUCCESS ERROR INPUT NONE LOGIN 能自定义返回值以实现更多的转向么?具体应该如何做呢
- <input type="file" name="filename">解决方法
- 请问java正则匹配 s:text 标签有关问题
- java的GUI设计,如何样获得具有焦点的控件,比如说文本框!text.isFocusControl如何不行?
- 给listbox和<INPUT id="xx" name="xx" runat="server"> 赋值有关问题
- 亟需可用的Tx Text Control .net for WPF的控件
- 求大神指导,怎么令Static Text(静态文件框)背景色为透明
- vc++.net中的有关问题( error C2440: 'type cast' : cannot convert from 'CString' to 'const char *')
- 为什么总出错StrToInt((LPCWSTR)this->textBox1->Text)?该如何处理
- Cannot marshal 'return value' Invalid managed/unmanaged type combination.解决思路
- 刚学Delphi,请教DWORD(textbox1.Text[i])得到的是什么东西啊
- 水晶报表-Exception of type 'System.OutOfMemoryException' was thrown.解决思路
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- Directory.GetFiles(txtSource.Text) 如何获取文件对象
- html password editbox 编码有关问题