Location

Description

A function equivalent of the cflocation tag and is used in the <cfscript> mode.

Parameters

Same as the <cflocation> tag.

Function syntax

location("url", addtoken, statusCode);

For positional arguments, the sequence is:

location (url, addToken, statusCode)

Usage

You can call this function as name=value pair or as positional argument. In case of positional arguments, the order of the parameters remains the same as the corresponding tag or as mentioned in the preceding Function Syntax section.

Example

<cfscript 
    location(url="http://localhost:8500/administrator") 
</cfscript>