Q:

Forcing the Browser Back a Page

I was wondering if there was any way through php or javascript I could tell the browser to go back to the page it came from, or even better not load the page at all (the later being probably impossible). 
The reason for this is that I have written a small php script that will take parameters from the url and post a tweet for me discreetly while I am at work. 
ex. 
tweet.php?user=myname&pass=mypass&message=My message goes here

Though it works, I get stuck with a white page.   It would be nice if I could have the browser go back to the page it was just on, so the pause between work would be minimal. 
Thank you for the help! 

A:

javascript: history.go(-1);

A:

The JavaScript function for this is window.back().   Have your PHP script produce something like the following to have browsers automatically "bounced back" to the submitting page:
<html>
    <head>
        <title>Success</title>
    </head>

    <body onload="window.back()">
        <h1>Success</h1>
    </body>
</html>

Non-JS browsers will see a "success" message, JS browsers will get bounced back.