self.resizeTo

W

wmarler

Hi,
I'm trying to make the browser window resize itself when a new page
loads in the current window.It works for FireFox but not in IE6.
I've tried putting this under head, body and at the very top of the
html script of the new page being loaded,

<script Language="javascript">
self.resizeTo(800,800);
</script>

and I've tried putting javascript in the Flash links, using the same
window name as the current window.

getURL("javascript:var NewWindow=window.open('test1.html', 'newWin',
'width=800, height=800, left=0, top=0,
resizable=Yes,');NewWindow.focus();")




Can anyone help?
 
A

alu

Hi,
I'm trying to make the browser window resize itself when a new page
loads in the current window.It works for FireFox but not in IE6.
I've tried putting this under head, body and at the very top of the
html script of the new page being loaded,

<script Language="javascript">
self.resizeTo(800,800);
</script>


Works fine in IE6 for me.
You could try <body onload="self.resizeTo(800,800);">
and remove the Flash links.
 
W

wmarler

Yeah thanks alu, that works fine, and so did my code - just not
offline(?).
But it still doesn't work when you return to the first page - when the
first window is reloaded.
I'm thinking it might be to do with cacheing and bReplace could be used
in the flash links. But I'm unsure of the correct syntax.

Anyone?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top