473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

FireFox Javascript customization Autocomplete

kestrel
1,071 Expert 1GB
I know it is possible to 'tweak' certain aspects of Firefox's html display.
for example, you can create a JS file so that all frames are re-sizable. So heres my Question.
Im looking for a way to disable autocomplete="off" in forms. I hate running into those, when i just want to be able to save my passwords there.
So is this possible in firefox?
Feb 23 '07 #1
2 5087
anyone know?
Hi kestrel,

I saw your post now only, when I am also in the same situation to find a solution to "block" the autocomplete feature of firefox in my web page. But finally I could figure out the solution from the following site.

http://forum.java.sun.com/thread.jsp...sageID=4318722

A sample html page is given here.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE></TITLE>
  5.  
  6. <SCRIPT language="Javascript">
  7. function blockAutoComplete() {
  8.     document.forms[0].elements["txtOne"].setAttribute("autocomplete","off");
  9. }
  10. </SCRIPT>
  11.  
  12. </HEAD>
  13.  
  14. <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" onLoad="blockAutoComplete()">
  15.  
  16. <FORM NAME="form1" action="Test.htm">
  17.  
  18. <b>See, for first text box auto complete is blocked and for second one it is enabled.</b><br/><br/>
  19. First text box :
  20. <INPUT TYPE="TEXT" NAME="txtOne" VALUE=""></INPUT>
  21. <br/><br/>
  22. Second text box :
  23. <INPUT TYPE="TEXT" NAME="txtTwo" VALUE=""></INPUT>
  24. <br/><br/>
  25. <INPUT TYPE="SUBMIT" NAME="btSubmit" VALUE="Submit"></INPUT>
  26. </FORM>
  27.  
  28. </BODY>
  29. </HTML>
  30.  
Manoj.
May 30 '07 #2
drhowarddrfine
7,435 Expert 4TB
Firefox auto:config Scroll near the bottom for "signon. prefillForms"
May 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: ryanmhuc | last post by:
I have a function which needs to cancel the input into a text field on a form. I cancel the event in IE fine and the text does not get entered. But for firefox (1.0) I cancel the event and the text...
4
by: David McNerney | last post by:
Would anyone be able to tell me why I get an error in FireFox 1.5.0.1 for MacOSX when I type some text and hit Enter in the following form: <html> <body> <form action="http://example.com"...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
1
by: wkerplunk | last post by:
Below is what I have build with several different languages. It works great but I need help, I am stuck. When you click on an item in the dropdown autocomplete div it does a mousedown function...
3
by: ojasrege | last post by:
If I have a web form where a user enters sensitive information, such as a SS#, is there any way for a web site to prohibit any browser from remembering data for specific fields (IE's autocomplete)?...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
4
by: =?Utf-8?B?RGF2ZSBXZWVkZW4=?= | last post by:
Hi, I seem to have found a bug in the regular expression validator under firefox 2.0.0.15 when I use saved form field values. Specifically I have an email address validator for a text box that...
1
by: sva0008 | last post by:
i have a auto suggest script that does not work in firefox , works great on IE. /******************************************************* AutoSuggest - a javascript automatic text input...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.