a port of the Processing Visualization Language
Name

link()

Examples
void draw() { 

  rect(20, 20, 60, 60); 

} 

 

void mousePressed() { 

  link("http://processingjs.org"); 

}

void draw() { 

  rect(20, 20, 60, 60); 

} 

 

void mousePressed() { 

  link("http://processingjs.org", "_new"); 

}
Description Links to a webpage either in the same window or in a new window. The complete URL must be specified.
Syntax
link(url)

link(url, target)
Parameters
url String: complete url as a String in quotes
target String: name of the window to load the URL as a string in quotes
Usage Web & Application

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub