There exist several kinds of possible links between HTML and VRML. The most frequently used are the following:
<A HREF="../examples/basics/basics-shapes-10V.wrl">My world</A>
will replace your html page by a VRML scene.
(a VRML page)
<A HREF="../examples/basics/basics-shapes-10V.wrl TARGET="_blank">My world</A>
will open a new browser window. This is recommended way to bring
(non-embedded) VRML scenes
things to newbie Internet users. Others should know how
to open another browser window.
Use the <embed> tag
, e.g. something like
<EMBED align=center src="../examples/basics/basics-shapes-10V.wrl" border=0 width=180 height=180>in order to embed a VRML plug-in window within a HTML page. If you don't need to display large VRML scenes, this is the recommended way to do it (rather then using frames).
See section 1.2.6 on page .
Note that can you pass parameters like target=
if you want
for example the user to open up another HTML frame when
clicking on a VRML object.
You can also use the Browser object in a Script node (make sure to have a recent browser !) for more sophisticated stuff:
Browser.loadURL(url, parameter); e.g. Browser.loadURL("publicity.html", "target=_new");If you want to launch a new window, use '
target=_new
' for the parameter.
If you want to target a frame named explanation, use 'target=explanation' for the
parameter.
Of course you can do more crazy stuff (more to follow maybe one day) but just be aware that ``Javascript'' inside VRML is NOT Netscape's (or whatever) language. see section 5.3 on page for some more information.