Hi,
I use an iFrame on my page, to load other pages in it.
I set the width of the iFrame to 100% and all works well.
But just now I realized that if you do not use a fixed with, the iFrame does not size in Safari (the width)
So I thought maybe I should use a javascript like this?
where "body" is the id of the iFrame, and "bodycell" is the <td> I placed the iFrame in.Code:document.getElementById("body").width = document.getElementById("bodycell").width;
But this code still set in percentance. If I say:
then i get "100%", not a fixed widthCode:alert(document.getElementById("bodycell").width);
Any workaround?




Reply With Quote