Reference getURLParams()

getURLParams()

Returns the current URL parameters in an Object.

For example, calling getURLParams() in a sketch hosted at the URL https://p5js.org?year=2014&month=May&day=15 returns { year: 2014, month: 'May', day: 15 }.

Examples

Syntax

getURLParams()

Parameters

Returns

Object: URL params

Related References