The simplest way is passing a URL parameter and reading it at page load