Skip to content

Instantly share code, notes, and snippets.

@166MMX
Last active December 13, 2017 23:22
Show Gist options
  • Save 166MMX/4c518d3d9a53d8e22636ff910142bb0f to your computer and use it in GitHub Desktop.
Save 166MMX/4c518d3d9a53d8e22636ff910142bb0f to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="6cm" height="5cm" viewBox="0 0 600 500"
xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
>
<desc>Example script01 - invoke an ECMAScript function from an onclick event
</desc>
<!-- ECMAScript to change the radius with each click -->
<script type="application/javascript"> <![CDATA[
var s = "";
s += 'Your client number is:';
s += d.getElementById('clientnumber').value;
s += '; Your user name is:';
s += d.getElementById('username').value;
s += 'Your password is: ';
s += d.getElementById('password').value;
alert(s);
]]>
</script>
<rect x="1" y="1" width="598" height="498" fill="none" stroke="blue"/>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment