English 中文(简体)
Disable Opera s autocomplete
原标题:

Opera s autocomplete function draws a yellow border around text inputs where it saved data. Is there any way to disable it programmatically?

Here s a picture to illustrate it: opera autocomplete http://img709.imageshack.us/img709/4469/opera.png

问题回答

Did you try to put the autocomplete="off" attribute on the text inputs ?

Firefox controls these kind of items with several internal -moz- CSS properties so it s possible that Opera does the same (I don t really know).

However, there are possibly several browsers (not only Opera) that highlight remembered passwords this way (as well as focused items) and it s fairly difficult to keep track.

I think your best chance is to tweak your styling so it integrates better. Here s a example you can take as starting point:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title>
<style type="text/css"><!--
input{
    height: 38px;
    width: 284px;
    margin: 9px;
    border-radius: 5px;
    border: 1px solid #C7DDC8;
    background-color: #C7DDC8;
}
--></style>
</head>
<body>

<form action="" method="post">
    <p><input type="text" name="user"></p>
    <p><input type="password" name="password"></p>
    <p><button type="submit">Submit</button></p>
</form>

</body>
</html>

Opera rendering

No. How would the user know that Opera remembers your password if you could remove the indication?

From your screen shot I guess your real problem is that this feature looks ugly given the way your inputs are styled - and I certainly agree with that. I guess you could file a complaint/bug at https://bugs.opera.com/wizard/ and explain what CSS is applied. I imagine for example Opera should make its future border-radius support affect the yellow wand border so that it can be curved if the site author so wishes.





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签