Home How do I write this program [HTML & JavaScript] so that when I press 'Proceed' after pressing 'Submit', 'Google' opens?
Reply: 0

How do I write this program [HTML & JavaScript] so that when I press 'Proceed' after pressing 'Submit', 'Google' opens?

user738
1#
user738 Published in April 21, 2018, 3:29 pm

Whenever I click the 'Proceed' button 'Google' does not open. It would be helpful if someone would tell me how to fix this using just basic HTML and JavaScript(unless not possible).

<html>
    <head>
        <title>
            JavaBoys
        </title>
        <script type="text/javascript">
            function a(){ // function
                document.write(' <form action="https://google.com"><input type="button" value="Proceed" ></form>');
            }
        </script>
        <body>
            <button onClick="a()">Submit</button>
        </body>
    </head>
</html>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308229 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO