| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### link()
Examples |  |
    void loop() {
      rect(20, 20, 60, 60);
    }

    void mousePressed() {
      link("http://www.groupc.net");
    }
    void loop() {
      rect(20, 20, 60, 60);
    }

    void mousePressed() {
      link("http://www.groupc.net", "_new");
    }
Description |  | Links to a different URL. The complete URL must be specified. This function will only work within a Web browser.
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
Returns |  | None
Usage |  | Web

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |