|
Re: Jump to URL from SVG within a HTML page: msg#00016web.svg
Hi, My solution is to call a script method inside the HTML from a script method in the SVG. <html> <head> <script language="JavaScript"> function doTheStuffInHtml(url) { window.location.href = url; } </script> </head> <body> <embed src="test.svg" name="test" height="40" width="40" type="image/svg-xml"/> </body> </html> <svg height="40" width="40"> <defs> <script> function doTheStuffInSvg(url) { parent.doTheStuffInHtml(url); } </script> </defs> <rect x="10" y="10" height="20" width="20" onclick="doTheStuffInSvg('newPage.htm');" /> </svg> --- Legendo metulas imitabere cancrum Olivier Gérault ----- Original Message ----- From: "Kai Michael Poppe" <kmpoppe@xxxxxxxxxxxxxxxxxxxxxxxx> To: <www-svg@xxxxxx> Sent: Wednesday, March 09, 2005 4:02 PM Subject: Jump to URL from SVG within a HTML page
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Jump to URL from SVG within a HTML page: 00016, Kai Michael Poppe |
|---|---|
| Next by Date: | Re: Jump to URL from SVG within a HTML page: 00016, Kai Michael Poppe |
| Previous by Thread: | Jump to URL from SVG within a HTML pagei: 00016, Kai Michael Poppe |
| Next by Thread: | Re: Jump to URL from SVG within a HTML page: 00016, Kai Michael Poppe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |