My company has a web page created mainly by mod_perl, CGI.pm, & javascript. On this page, when you click on certain links, you may be redirected to a new page depending on your status. The perl code behind is currently implemented this way:
The implementation above works OK except one thing - it opens a NEW window with the content of 'newpage.html'.
My question is how I can modify the code so that it can use the EXISTING window instead of opening a new one? BTW, I tried start_html() and some javascript approach, but neither works.
Many thanks in advance for your kind help!
Code:
sub redirect {
# some implementation here
if($status) {
print redirect(-location=>"/newpage.html");
}
exit;
}
The implementation above works OK except one thing - it opens a NEW window with the content of 'newpage.html'.
My question is how I can modify the code so that it can use the EXISTING window instead of opening a new one? BTW, I tried start_html() and some javascript approach, but neither works.
Many thanks in advance for your kind help!