1 <svg xmlns=
"http://www.w3.org/2000/svg" width=
"200" height=
"200">
2 <rect x=
"10" y=
"10" width=
"180" height=
"180" fill=
"green"/>
3 <rect transform=
"translate(200, 0)" x=
"10" y=
"10" width=
"180" height=
"180" fill=
"green"/>
5 function changeSize() {
6 var svg = document.getElementsByTagName(
"svg")[
0];
7 svg.setAttribute(
"width",
"400");