This is actually quite simple. To refer to a JavaScript function named "f( )" that resides in the HTML document (in which the SVG document is embedded), let the SVG document call the function through "top.f( )".
Please refer this page for live demo: http://srufaculty.sru.edu/david.dailey/svg/intro/PartF_B.html
On processing, please waiting for ...
Comments are closed for this post, but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.