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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript reset window 1

Status
Not open for further replies.

achai

MIS
May 23, 2000
71
0
0
US
It shows error, how to reset window and make them those menubars all invisible. don't want to use open new window function.
thanks
------
<SCRIPT language=&quot;JavaScript&quot;>
function resizewindow() {
window.resizeTo(490, 500);
window.setResizable(false);
window.statusbar.visibility==false;
window.scrollbars.visibility==false;
window.menubar.visibility==false;
window.toolbar.visibility==false;
window.personalbar.visibility==false;
}
</SCRIPT>
<body onload=&quot;resizewindow();&quot;>
------------------
[sig][/sig]
 
You're using the wrong operator. the assignment operator is = not ==

[sig]<p>nick bulka<br><a href=mailto: > </a><br><a href= </a><br>[/sig]
 
I tried both == and =, still has error. [sig][/sig]
 
Hi Nick,

i check your code and found that there is a problem with line 4

&quot;window.setResizable(false)&quot;, it should be window.setResizeable = false [sig]<p>Chiu Chan<br><a href=mailto:cchan@gefmus.com>cchan@gefmus.com</a><br><a href= America, Inc</a><br>[/sig]
 
still has error, but both IE and netscape still show menubar....scrollbars.
I was wondering how do you know which line is wrong?
thanks [sig][/sig]
 
Hi, achai

for Netscape, you can check the Javascript error by typing
&quot;JavaScript:&quot; in the URL bar, after the page get load

for IE, if there is an error, your status bar (the bottom left) will show something like, &quot;page load but with error&quot;, simply doubleclick the status bar, you will see the javascript error report pop up

hope this help, [sig]<p>Chiu Chan<br><a href=mailto:cchan@gefmus.com>cchan@gefmus.com</a><br><a href= America, Inc</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top