proud Posted February 18, 2007 Share Posted February 18, 2007 I was wondering whether javascript has a header function like the one in php that directs the one to another page? and if there exists please i would like to know it's syntax? Quote Link to comment Share on other sites More sharing options...
sync2007 Posted February 18, 2007 Share Posted February 18, 2007 JavaScript allows you to change the location (or page that is currently loaded into the window) by simply setting it equal to another URL: location='http://yahoo.com' You can achieve the same results by appending "location" with "href": location.href='http://yahoo.com' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.