Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript error on Mac ie.

Status
Not open for further replies.

hexalyn

Technical User
Oct 10, 2000
2
CA
I am having some trouble with some javascript in ie on a mac platform. The error message runs along the lines "script error occured; continue loading pages with errors?". This happens quite often, both in pages I've scripted as well as pages I visit with Mac ie. Here is an example of a simple script that has been giving me trouble; I am new to javascript so any help or advice would be greatly appreciated!

<script>
window.resizeTo('scrollbars=yes,width=653,height=800');
</script>
[sig][/sig]
 
As far as I am aware, the only parameters that can be specified for window.resizeTo are numbers representing the width and height (in that order). So your statement needs to be as follows:-

window.resizeTo(653,800);

Enjoy :)

[sig][/sig]
 
Thanks! That definitely helps... now how do I specify that the window should have scrollbars? Right now, if I tell it to restrict the window size, it removes the scrollbars entirely (I won't even bother asking why!). I suspect the solution will look something like window.????(scrollbars=yes)... Any suggestions for the ???? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top