Welcome Guest, Not a member yet? Register   Sign In
javascript before redirect
#1

[eluser]syntaxerror[/eluser]
hi,
can anyone please tell me how to execute javascript first before redirect?

i have a script here but it skips javascript and executes javascript.
Code:
[removed]
            alert ("Put your warning text here!")
            [removed]
        <?php
            redirect('Front_cont/input_dir_ufpb_wp');
        ?>

i want to check if a file exist,
if that file doesnt exist, it pops up an alert box and return to the
input text page.

the problem is it skips the alert message and just redirect the page.

please advice.

thanks


Messages In This Thread
javascript before redirect - by El Forum - 11-03-2008, 08:17 PM
javascript before redirect - by El Forum - 11-03-2008, 08:40 PM
javascript before redirect - by El Forum - 11-03-2008, 09:02 PM
javascript before redirect - by El Forum - 11-03-2008, 09:24 PM
javascript before redirect - by El Forum - 11-04-2008, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB