javascript - How to set height and width of object tag so that no scrollbars appear -


i trying display webpage inside div using object tag of html. have tried loading inside div since host name of webpage differes, gives cors error.

also tried iframe requires scrolling='no' remove scrollbars. so, decided use object tag after referring https://developer.mozilla.org/en-us/docs/web/html/element/object. able remove scroll bars if specify fixed height , width in pixels. however, want decide dynamically based on screen resolution avaoid scrollbars appearing devices/browsers.

how can achieve this? below code snippet.

<div style="width: 100%; overflow:hidden;">     <!--  main content goes here -->     <object type="text/html" data="<%=url%>" style="overflow: auto;" align="middle" standby="loading ..." id="py-content"> </object> </div> 

i appreciate on this.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -