|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi:
can any body tell me how to get height and width of loaded page in an iframe. Thanks Burhan |
|
#2
|
|||
|
|||
|
As I wrote in the previous example you define the width and height of the iframe in the iframe-code:
<IFRAME SRC="foo.html" WIDTH=300 HEIGHT=100></IFRAME> Normally you don't have to do anything of the width of the page which is loaded into the iframe, but sometimes you can get a horisontal-scrollbar if foo.html is to wide. Then you define the width of this page as you normally would do, ex. let's say the content in foo.html are placed in a table: <table width="290" ><tr><td>... Now the width of the table is less than the iframe and you shouldn't get at horisontal scrollbar. |
|
#3
|
|||
|
|||
|
i want to......
I don't want to remove horizontal scroll bar from iframe.
I want the page width of iframe for some other purpose. Kindly some one know how to do this? Burhan |
|
#4
|
|||
|
|||
|
Did you read what I wrote? I have told you how to see the width and height of the iframe, in the other post I told you how to get the page-source of the page inside the iframe.
Just view the source of the webpage, the one with the iframe and you will see what widht and height there is used on the iframe, then open foo.html and view the source there and you will see if there are used any width/height definitions on that page. |
|
#5
|
|||
|
|||
|
Man you are daft
Did you read what HE wrote? Who wants to view some bloody page manually. He obviously is looking for a JS property.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > how to get height and width of loaded page in an iframe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|