How can I load this web devocionmusical.com
with JavaScript ?
I also want to add this at the end ? fromMyApp = true
Then, if the user navigates to another section of the web, eg: devocionmusical.com/songs
that is also added to the end ? fromMyApp = true
Thank you very much!
UPDATE:
<!DOCTYPE html>
<html>
<head>
<title>BlankTemplate7771</title>
<script type="text/javascript">
window.onload = function()
{
var url, hdiv = document.getElementById("hiddendivid");
if (hdiv != null)
url = hdiv.innerText || hdiv.textContent;
if (url)
{
if (top == self)
window.location = url;
else
top.updateWindowWithContentsOfUrl(self, url);
}
}
</script>
</head>
<body>
<div id="hiddendivid" style="display:none">http://devocionmusical.com</div>
</body>
</html>
UPDATE 2: Part of the code at devocionmusical.com
{if isset($_conf.jrAudio_block_download) && $_conf.jrAudio_block_download == 'off' && $item.profile_quota_id != 9}
{if isset($_post['fromMyApp'])}
<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">GRATIS APP</span><a href="external://{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>
{else}
<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">GRATIS</span><a href=" {$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download"> {jrCore_icon icon="download" size="24"}</a></div>
{/if}
{else}
<div class="add_to_cart_section" title="Download Not Available"><span class="add_to_cart_price">N/A</span>{jrCore_icon icon="lock" size="24"}</div>
{/if}