...

View Full Version : simple button not working in firefox



o0O0o.o0O0o
04-23-2008, 07:19 AM
i have this simple button , it is working on IE and opera but not in firefx



<html>
<body>

<style type=text/css>



#tick { align: center;

display: none;

margin - top :0px;
margin - left: 30px;

}


</style>


<input type="submit" value="Send" onClick ="

alert();


">

<div id = 'tick'><img src = 'tick2.gif'> </div>

</body>
</html>

mjlorbet
04-23-2008, 07:21 AM
change type (on the input) to button

o0O0o.o0O0o
04-23-2008, 07:59 AM
i tried that as well,

I think alert() was not working in firefox due to some reason , if i remove alert() then the code below executes , don't know why

mjlorbet
04-23-2008, 08:02 AM
if it has the literal line break, firefox is probably erroring on "unterminated string constant" condense the tag to a single line if it isn't already.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum