Method Html3():setLocation() Professional

Redirect a request to a different URL.

Syntax
:setLocation( <cURL> ) --> cURL
Parameters
<cURL>
<cURL> is the uniform resource locator to which the request is re-directed.
Return

The method returns a character string holding the uniform resource locator (URL) to which the form request is re-directed.

Description

The method :setLocation() instructs the HTTP server to retrieve the document specified with <cURL> and send it as a response to the client side of the Web application. A form function must return .T. (true) immediately after the method is called and no further HTML output is possible.

PRG code:

FUNCTION LinkToAlaska( oHtml ) 
   oHTML:setLocation( "www.alaska-software.com" ) 
RETURN .T. 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.