set attribute with polyline points
<p>I know that the following code would be set out in this particular way to say set attribute of a rectangles width is it the same for a polyline or do you have to change it ?  </p>

<pre><code>function newer() {
        document.getElementById("rectangle").setAttribute('width',"70");
}
</code></pre>

<p>Would it by like the follwoing code for a polyline or would it be some other way?</p>

<pre><code>  function new() {
        document.getElementById("polyline1").setAttribute('points', "0,0 200,0 200,200 100,200 100,100 0,100 0,0" );

    }
</code></pre>
