I have a question about using javascript to handle the href attribute. Here is the code snippet I am working with:
<script>
window.onunload = refreshParent;
function refreshParent() {
var SAPno = document.getElementById('HiddenNo');
window.opener.location.href="Inventory.aspx?" + "SAPNo="+ SAPno +;
}
</script>
Here is my hidden field code:
<asp:HiddenField ID="HiddenNo" runat="server" />
Can anyone help me understand how to extract and use the value from the hiddenfield and pass it to Inventory.aspx? Also, how can I retrieve this value?
Thank you in advance!