I have an SVG element and I want its height and width to fit according to the resolution. For this I'll get into javascript through the screen.width. Now I wanted to insert this value into the svg tag. Is it possible to do this?
<script>
var window_width = screen.width;
var window_height = screen.height;
</script>
<svg width="<script type='text/javascript'>screen.width</script>" height="500">