Need help...I have wrritten one code for html through shell scripting in that i am using java scripts to validate some condition and open the html page without clicking the button....
Not positive if you are showing part of your code, or the whole thing? If this is a separate file that is called from another web page you will still need the opening #!/bin/bash. If this is a stand-alone web page you will also need opening and closing html in there. Not sure what your intended conditions are supposed to be either. Try what I've suggested if you haven't already. If you already have, reply back more details on what your conditions are and more code if you have it.
The " inside the javascript will be eaten by the shell because they're not escaped. It doesn't know the quotes are supposed to be for javascript, and handles them itself.