Best practice in passing variables from one page to another?


Is there a particular best practice when passing a variable to another page?

For example, if I’m in index, and I click on
<a href="hello.html">hello world</a>

how do I pass data so that on hello html, I’ll receive a javascript object literal?
I’m planning to do it by writing the data to a temporary file. But is there a more effective method than this? (aside from string query)