darma teja

darma teja

  • NA
  • 496
  • 338.3k

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
Darma

Answers (5)