Call apex page from javascript , referer

I wanted to check whether apex is called from a browser session by entering an url or from an internet application. The command I wanted to use is: owa_util.get_cgi_env(‘HTTP_REFERER’); This command returns the (parent) url. However, when the apex application is called by using javascript (window.open) this command wil return Read more…