Pass variable to jQuery function in another page ?

Hi all

I have what I think is a simple question but I can't find an answer.

I have two html pages - one.html, two html.

one.html contains a jquery function that alerts the variable it is passed.

    function doAlert(message){
The problem is I want to call and pass the variable from another html page - two.html

How can I call and pass a variable to the jQuery function in one.html from two.html ?