Jump to content

Does javascript have a header function?


proud

Recommended Posts

 

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'

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.