darma teja

darma teja

  • 1.5k
  • 496
  • 273.6k

stretch image according to the screen

Aug 27 2013 9:59 AM
Hi All,

I would like to fit an svg image to fit according to browser window size.

here is my code in JavaScript:

var tag= '<object data="'svgfilename'" width="100%" height="100%">';

This code works fine. But i am getting image with scrollbars. I would like to get whole image according to window size.

Thanks in advance

Answers (5)