Noscript adds button to forms

Ask for help about NoScript, no registration needed to post
Grimeton
Posts: 4
Joined: Sat Oct 08, 2011 8:04 pm

Noscript adds button to forms

Post by Grimeton »

Hi,

I just wrote a few lines of html:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<body style="background-color:black;">
		<div style="position:absolute;top:50%;bottom:50%;left:25%;right:25%;text-align:center;">
			<font style="color:white;">
bleh
</font>
			<form action="/">
				<input type="text" name="lepassword" style="background:black;width:400px;border:0px;color:white;"/>
			</form>

		</div>
	</body>
</html>
When loading this code from the local drive (file://) everything is fine. The moment I load it from a webserver, there is a button added. Like a submit button. To avoid this I had to define my own submit button and then make it invisible.

Is this a expected behaviour or a bug?

Kr,

Grimeton
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Noscript adds button to forms

Post by Giorgio Maone »

Grimeton wrote:Is this a expected behaviour or a bug?
It is expected behavior on pages where JavaScript is disabled, in order to make some forms which can only be submitted by JavaScript code usable nonetheless.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Post Reply