Pannellum: HotSpot link in same Window?

Created on 4 May 2017  路  2Comments  路  Source: mpetroff/pannellum

When a Hotspot is declared as "type": "scene" then the link will open a new window.
The script is embedded in an iframe. Is it possible to load the link in the same window as the iframe?

thanx in advance!

question

Most helpful comment

The only way to do this without modifying the source code would be to set a custom click handler using the clickHandlerFunc hot spot parameter and have that handler set window.location. The link target is set to _blank, which opens links in a new tab, because the user would lose his or her place in the panorama / tour if the same window was used.

All 2 comments

The only way to do this without modifying the source code would be to set a custom click handler using the clickHandlerFunc hot spot parameter and have that handler set window.location. The link target is set to _blank, which opens links in a new tab, because the user would lose his or her place in the panorama / tour if the same window was used.

would you please share an example here?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DStillingfleet picture DStillingfleet  路  8Comments

tomas-nz picture tomas-nz  路  4Comments

shtrudelsupport picture shtrudelsupport  路  3Comments

S8ShowBob picture S8ShowBob  路  3Comments

DietRedThunder picture DietRedThunder  路  6Comments