JavaScript – location.replace

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%>”;
}

digg delicious stumbleupon technorati Google live facebook Sphinn Mixx