w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Redirecting the perl script
      Using the javascript in Perl we can redirect the page from
perl file to the another perl file

       Step 1  use CGI qw(:standard);

       Step 2   my $JSCRIPT=<<EOF;

                function redirect_GMM()
                window.location.href =
       Step 3  my $q =CGI->new;
               print $q->header('text/html');
               print $q->h5('JJ login page');
               print $q->end_html; 

       Step 4   print button(
                         -name =>'GOOD',
                         -value    =>'GOOD',

         This code will surely redirect the page when you press the button.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.