Skip to content

Commit

Permalink
Adding documentation for the new "openTab" property (workadventure#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf authored Sep 8, 2021
1 parent 149b417 commit d7a5435
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/maps/opening-a-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on the right side of the screen)

In order to create a zone that opens websites:

* You must create a specific layer.
* In layer properties, you MUST add a "`openWebsite`" property (of type "`string`"). The value of the property is the URL of the website to open (the URL must start with "https://")
* You may also use "`openWebsiteWidth`" property (of type "`number`" between 0 and 100) to control the width of the iframe.
* You must create a specific layer.
* In layer properties, you MUST add a "`openWebsite`" property (of type "`string`"). The value of the property is the URL of the website to open (the URL must start with "https://")
* You may also use "`openWebsiteWidth`" property (of type "`number`" between 0 and 100) to control the width of the iframe.
* You may also use "`openTab`" property (of type "`string`") to open in a new tab instead.

{.alert.alert-warning}
A website can explicitly forbid another website from loading it in an iFrame using
Expand Down

0 comments on commit d7a5435

Please sign in to comment.