Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Resolve Uncaught ReferenceError: TrialScript is not defined

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 653
    Answer it

    <html>
    <head>
    <Title>Demo Script</Title>

     <script type="text/javascript">
                    function TrialScript()
                    {
                        if (confirm('Are you sure you want to proceed?') == true) 
                        { 
                            document.getElementById('Hidden1').value = 'yes'; 
                        } 
                        else   
                        {  
                            document.getElementById('Hidden1)'.value = 'no';
                        }
                    }
                    
                </script>


    </head>

    <body onload="TrialScript();">

    <input id="Hidden1" type="hidden" />

    </body>

    </html>

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: