Forum

User posts JPEG2000
19 February 2018 12:35
Hi!

I'm working on a project with some artists. They've created and exported an HTML of their Blend4Web project. Everything is working perfectly, except that we need the links activated by objects in the scene to open in a new tab (they open webpages with a looping video, there are 9 of them).

I can see several "window.location.href" and {\"url\": \"http://www.my.link_to_open_in_new_tab/\"}

is there a way I can add a "target=_blank" to any of these lines? or even a canvas that controls this interaction. Anywhere i've tried to add this has either broken the code or had no effect. All URLS linked are on the same server so should not be a problem for browsers.

Any help would be greatly apreciated!

Thanks!