How can I trigger JavaScript in a VRML Anchor—is it possible to use an Event Listener?
问题 I'm using the X_ITE javascript-WebGL library to display a legacy VRML project in modern browsers. Anchors in the VRML code currently open HTML files in separate windows (on the same domain) like this: Anchor { url "javascript: window.open('./data/583.html' other_stuff…)" description etc.… } or by calling a function and passing the relevant argument: url "javascript: showInfo('583')" Both produce CORS errors, which I can get around by simply opening the URL: url "data/583.html" However,