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

Hiding scrollbars & Menubars (not popup window) 1

Status
Not open for further replies.

MadJock

Programmer
May 25, 2001
318
GB
Hi,

Does anyone know how to hide scrollbar, locationbar etc in Javascript?

Basically I want to achieve the affect of
Code:
window.open(url,'name','toolbar=no,width='+screen.width-10+',height='+screen.height-30+',directories=no,status=no,menubar=no,scrollbars=no,resize=no,top=0,left=0);

But define the settings on the page being called - not on the link to open it.

Non-working example of what I'm looking for:
Code:
<head>
  <script language = "JavaScript">
    function setupWin() {
      window.scrollbars = false;
      window.locationbar = false;
    }
  </script>
</head>
<body onLoad="JavaScript:setupWin()">
 '
 '
 '
</body>

Thanks in advance


"Just beacuse you're paranoid, don't mean they're not after you
 
However, one possibility would be to have the page-being-opened open itself in a new window with the window-open parameters you want, and then either close the parent (original) window or (more user friendly), send the parent window back one in its history.

Good luck.

--Dave
 

Dan: Thanks - maybe I'm not being as dense as I thought I was!!

Dave: Sounds like a plan - I'll give it a shot. have a star anyway!

"Just beacuse you're paranoid, don't mean they're not after you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top