JavaScript – location.replace
March 11th, 2010 |
|
0 Comments »
Question:
Hi Experts,
I am trying to open the link in the same window, but it keeps opening in a new window!
My code is below:
function abc()
{
location.replace(“<%=txt_shortcutURL.Text%>”);
}
Solution:
function abc()
{
location.href=”<%=txt_shortcutURL.Text%>”;
}








