Hi there, first of all, i'm a complete newbie to javascript and programming in general (only know html and some css).
I do however have a problem which needs to be fixed.
I have 2 domains (www.frankbakker.com) and (www.team-lockdown.com).
The problem is that team-lockdown.com redirects to frankbakker.com (it's only a domain alias). Unfortunally my hosting company can't redirect team-lockdown.com to a subdomain (lockdown.frankbakker.com).
So what i want is:
Based on the url you write in your browser (or link for that matter) to go to either frankbakker.com or team-lockdown.com. So, in case someone types www.team-lockdown.com i want them to go to lockdown.frankbakker.com and if someone types www.frankbakker.com it should just lead them to the normal page.
I have something like this in mind but i'm sure this isn't correct javascript because i'm a total newbie:
<script type="text/javascript">
function urlfoward(){
if (window.location.href = "http://www.team-lockdown.com")
{ window.location.href = "http://lockdown.frankbakker.com" }
}
</script>
