Can you post the code that you're working with? You may find this page useful.
Thanks for reply.. ;)
Here is my HTML code ....
-
<a href="javascript:void(0);" onclick="closeWindow('<%=request.getParameter("cal_event_type")%>')"><img alt="Cross" src="./img/cross.JPG" id="cross_image" title="Cross the window" style="height:7px;width:7px"/></a>
-
I am repositioning the cross image when page gets loaded...that means during onLoad event.
Here is my JavaScript code ..
-
var cross_image_ref = document.getElementById('cross_image');
-
cross_image_ref.style.position = 'absolute';
-
cross_image_ref.style.left = document.body.offsetWidth+'px';
-
Remember if the screen is having horizontal scroll then it does not work in Mozilla but it works expectedly in IE.
Why it differs ..please help!
By the way i solved this problem .... I know that in the page which causes the scroll bars.. i am having the width of that element and reposition the image ..
but it's not a feasible solution ..what do you think ? ..... ;)