I'm trying to load a HTML file when clicked on the <a-entity>
and it doesn't work with the traditional HTML methods.(using href)
Please see the code below.
<a-scene>
<a-assets>
<a-asset-item id="mBot" src="../assets/robot1.glb"></a-asset-item>
<img id="panorama" src="../assets/stock.jpg" />
</a-assets>
<!-- Robot -->
<a-entity
gltf-model="#mBot"
scale="4 4 4"
position="0 1 2"
id="mBot-1"
>
<a-animation attribute="rotation" to="0 360 0" repeat="indefinite" >
</a-animation>
</a-entity>
<!-- Robot -->
<a-entity
gltf-model="#mBot"
scale="4 4 4"
position="8 1 2"
id="mBot-2"
>
<a-animation attribute="rotation" to="0 -360 0 " repeat="indefinite">
</a-animation>
</a-entity>
<a-entity position="4 0 8">
<a-camera></a-camera>
</a-entity>
<a-sky src="#panorama"></a-sky>
</a-scene>
I want to load two separate html files when clicked on entity id=mBot-1 and mBot-2.
Highly appreciate any help to solve this.