Debt Consolidation - Submit articles - Boxing Class - Find jobs - Debt Consolidation

PDA

View Full Version : Normal Links with javascript? in same window???


itsall3
Mar 12th 2006, 6:55 am
Hi guys,

Im having a problem trying to find a way to just make a normal link in javascript.

I have this function for my menu:

function DoNav(theUrl)
{
window.open(theUrl);
}

But its opening the link in a new window, i would like it in the window it is clicked.

Thanks for any help.

Regards.

torunforever
Mar 12th 2006, 12:04 pm
function DoNav(theUrl)
{
window.location.href=theUrl;
}

itsall3
Mar 12th 2006, 1:13 pm
Cheers mate, works great. :D

Many thanks.