#VRML V2.0 utf8 Viewpoint { position 5 0 20 } Shape { geometry DEF texto Text { string ["Press the button..."] length [] maxExtent 0.0 } } Transform { translation -2 0 0 children [ Shape {geometry Sphere{}} DEF ts TouchSensor {} ] } DEF bi1 Script { eventIn SFBool pressed eventOut MFString outS url "javascript: function pressed(value,timeStamp) { outS[0] = 'Waiting...'; Browser.loadURL(['http://www.lighthouse3d.com/vrml/tutorial/media/text.wrl']); }" } ROUTE ts.isActive TO bi1.pressed ROUTE bi1.outS TO texto.set_string