0

How do I go back to home using Javascript?

I am here...

localhost/Home/Alpha/Beta.aspx

if i use this windows.location("Home.aspx"); it gets an error.

Thanks in advance!

Joel
  • 55
  • 1
  • 7
  • Even though the duplicate question has jQuery in the title, the answer has nothing to do with jQuery. – Felix Kling Dec 17 '15 at 08:02
  • It says "The file '/Home/Alpha/Home.aspx' does not exist." It's really weird. – Joel Dec 17 '15 at 08:08
  • Well, does the file exist? – Felix Kling Dec 17 '15 at 08:09
  • yes it exists. i am using a localhost to test it.. so I am now at localhost/home/alpha/beta.aspx when i click submit... it should go back to home.aspx. how do i get about it? thanks in advance! – Joel Dec 17 '15 at 08:12

1 Answers1

1

It is:

window.location = 'url' 
Swiffy
  • 4,401
  • 2
  • 23
  • 49