Home > front end >  Perl (CGI) and HTML images of jump address bar display an error, and the browser returns back is not
Perl (CGI) and HTML images of jump address bar display an error, and the browser returns back is not

Time:10-12

HTML on. Tt file
Functions on. Cgi file
Use the Template to use inside. Cgi file new Template, and then by $Template - & gt; The process ("../tt/login. Tt ", $var) will load out the picture, but the logout jump to logout. Cgi when using & lt; A> And inside the link user ID into the background, so when the logout process is at the end of the screen to jump to the login, but your browser's address bar shows the ".../logout. Cgi? Userid=XXX,
"
Will now. The inside of the cgi images load to
Printf (" & lt; Script> Window. SetTimeout (\ "location. Href='http://ip address' ", 1000); </script> \n");
Refer to https://blog.csdn.net/lixuyuan/article/details/6609114

Can realize picture jump after the completion of the browser address bar to display properly for ".../login. Cgi ", but the browser's return to the previous page to failure, tried to use js to monitor returns event call history. The back (), but only to reload it again the login screen, not before returning to logout images,
Excuse me what method can be implemented to return to the login screen display properly address bar at the same time, the browser's return to the previous page can also be used, because before have no contact with this piece of content, this several days to find a solution is a patchwork, hope to have understand people can teach, please,
  •  Tags:  
  • CGI
  • Related