{"id":3375,"date":"2011-03-15T08:44:22","date_gmt":"2011-03-15T03:14:22","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=3375"},"modified":"2011-03-15T08:45:08","modified_gmt":"2011-03-15T03:15:08","slug":"change-input-type-auto-focus","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/change-input-type-auto-focus\/","title":{"rendered":"Change Input Type auto focus"},"content":{"rendered":"<p>This is little bit but it is very useful. This is input type equalto text when when cursor come in input then change type equalto password.<\/p>\n<p><strong>Embed in html<\/strong><br \/>\n[java]<br \/>\n&lt;input type=&quot;text&quot; onblur=&quot;javascript:if(this.value==&#8221;){this.value=&#8217;password&#8217;,this.type=&#8217;text&#8217;} else {this.type=&#8217;password&#8217;}&quot; onfocus=&quot;javascript:if(this.value==&#8217;password&#8217;){this.value=&#8221;} {this.type=&#8217;password&#8217;}&quot; value=&quot;password&quot; tabindex=&quot;1&quot; size=&quot;30&quot; id=&quot;txtEmail&quot; name=&quot;txtEmail&quot;&gt;<br \/>\n[\/java]<\/p>\n<p><strong>This is Demo <\/strong><br \/>\n<code><br \/>\n<input type=\"text\" onblur=\"javascript:if(this.value==''){this.value='password',this.type='text'} else {this.type='password'}\" onfocus=\"javascript:if(this.value=='password'){this.value=''} {this.type='password'}\" class=\"comment-pad5\" value=\"password\" tabindex=\"1\" size=\"30\" id=\"txtEmail\" name=\"txtEmail\"><br \/>\n<\/code><br \/>\n<br \/>\n<strong>Support browser<\/strong><\/p>\n<table style=\"border-spacing: 1px; border-collapse: inherit; font-size: 12px; font-family: Arial,Helvetica,sans-serif,'Arial Rounded MT Bold';\" cellspacing=\"1\" cellpadding=\"4\" width=\"100%\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td width=\"100\" bgcolor=\"#e6e6e6\"><strong>IE<\/strong><\/td>\n<td width=\"100\" bgcolor=\"#e6e6e6\"><strong> Firefox <\/strong><\/td>\n<td width=\"100\" bgcolor=\"#e6e6e6\"><strong>Safari <\/strong><\/td>\n<td width=\"100\" bgcolor=\"#e6e6e6\"><strong>Chrome<\/strong><\/td>\n<td width=\"100\" bgcolor=\"#e6e6e6\"><strong> Opera<\/strong><\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">6.0+<\/td>\n<td bgcolor=\"#ffffff\">3.5+<\/td>\n<td bgcolor=\"#ffffff\">3.0+<\/td>\n<td bgcolor=\"#ffffff\">3.0+<\/td>\n<td bgcolor=\"#ffffff\">10.5+<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>This is little bit but it is very useful. This is input type equalto text when when cursor come in input then change type equalto password. Embed in html [java] &lt;input type=&quot;text&quot; onblur=&quot;javascript:if(this.value==&#8221;){this.value=&#8217;password&#8217;,this.type=&#8217;text&#8217;} else {this.type=&#8217;password&#8217;}&quot; onfocus=&quot;javascript:if(this.value==&#8217;password&#8217;){this.value=&#8221;} {this.type=&#8217;password&#8217;}&quot; value=&quot;password&quot; tabindex=&quot;1&quot; size=&quot;30&quot; id=&quot;txtEmail&quot; name=&quot;txtEmail&quot;&gt; [\/java] This is Demo Support browser IE Firefox Safari Chrome Opera 6.0+ 3.5+ [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3375"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=3375"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3375\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=3375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=3375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=3375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}