Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<head>
    <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
</head>
<body>
    <script>
        function svg(tag) {
            var ns = 'http://www.w3.org/2000/svg';
            return document.createElementNS(ns, tag || 'svg');
        }
        
        var points = [
            300,  10,
             60, 400,
            540, 400,
            300,  10
        ];
        
        $(svg()).append(
            $(svg('polygon')).attr({
                fill:   '#def',
                stroke: '#ddd',
                points: points.join(' ')
            })
        ).appendTo('body');
    </script>
</body>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers