Redirecting to a new page

A

aroraamit81

Hi,

My new requirement is to transfer my page to some other location on
refreshing the page or can say when the user press F5 key, but the page
gets post back the same should not happen, I am using the code below
but it does not work out...
So any help??????


<HTML>
<BODY onunload="Refresh();">

</BODY >

</HTML>
<script>

function Refresh()
{
alert(window.hdd.value);

location.href="DD.htm";
alert(location.href);

}

</script>



Regards,
Amit Arora
 
T

Thomas 'PointedEars' Lahn

My new requirement is to transfer my page to some other location on
refreshing the page or can say when the user press F5 key, but the page
gets post back the same should not happen, I am using the code below

Oh yeah! I *love* it when that happens! Really! NOT.
but it does not work out...

Your code would be junk even if it would be Valid markup.
So any help??????

Your Question Mark key appears to be malfunctioning.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top