Hello,
I have an ASP page which is opened by a link, and pulls in some database data. However, if it is closed then re-opened it requires a forced refresh to update the data.
Question1: How can I foce the page to refresh itself whenever it is opened.
Question2: I would like to add a button which the user can click to refresh the page if they decide to leave the page open and come back to it another time.
I tried this code but it doesn't seem to work:
In the body section -
<script type="javascript">
function refreshPage(){
thisPage = document.location.href
document.location = thisPage
}
</script>
The button:
<input type="button" class="markbutton" onclick="refreshPage()" value="Refresh" />
All help and advice much appreciated as always.
JDN
I have an ASP page which is opened by a link, and pulls in some database data. However, if it is closed then re-opened it requires a forced refresh to update the data.
Question1: How can I foce the page to refresh itself whenever it is opened.
Question2: I would like to add a button which the user can click to refresh the page if they decide to leave the page open and come back to it another time.
I tried this code but it doesn't seem to work:
In the body section -
<script type="javascript">
function refreshPage(){
thisPage = document.location.href
document.location = thisPage
}
</script>
The button:
<input type="button" class="markbutton" onclick="refreshPage()" value="Refresh" />
All help and advice much appreciated as always.
JDN