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

how to: on load detect browser then resize

Status
Not open for further replies.

tellersix

Programmer
Oct 19, 2003
23
US
i need a script that will detect the browser on load and consequently resize the window to one size if explorer and a different size if navigator. i hope this question is not to elementary. thanks for your help.
 
here's a pretty rudimentary version:
Code:
if (navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
  window.resizeTo(w, h);
}
else {
  window.resizeTo(w, h);
}

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top