Link to home
Start Free TrialLog in
Avatar of Stiebel Eltron
Stiebel EltronFlag for Thailand

asked on

How do I disable address bar, scrollbars in a _blank New pop-up wIndow?

Dear EE,

I've created 1 page that has Image-map inside, so if the user direct their mouse to a certain point & click, a new window will pop up, but how can I disable to show the address bar & scrollbars. What I want is just to have a simple-neat, 1 page, without the address bar & scrollbars.

Thank you in advance!
Avatar of JPM
JPM
Flag of France image

Some javascript will fit.
For instance :
window.open( 'Movie1.html','newwin','width=640,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
you cannot remove address bar in IE7; so it may depend on the browser.

if
Avatar of Stiebel Eltron

ASKER

For JPM:
Do I need to write that script for every point that have link? Bec. there are 14 points that have certain link on each, so I must write it 14x, am I right?

---------------
For govidarajan78:
Most of the users in our company are using IE 8 now. So it's the same as IE7, can't be remove the address bar?
yes its not possible with IE8 as far as i know
ASKER CERTIFIED SOLUTION
Avatar of JPM
JPM
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dear JPM,

Will the:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  function newWin(page)
  {
     wHeight = screen.height - 80;   // for instance
     wWidth =  screen.width - 20;
     window.open(page,'newwin','height=' +wHeight+ ',width=' +wWidth+',
      locationbar=0,menubar=0,personalbar=0,scrollbars=0,statusbar=0,toolbar=0,top=0,left=0');
   }
   </SCRIPT>

be put inside <HEAD>--</HEAD> ?
Or? Please advise...
Yes you may.
i dont think you can hide the address bar in IE8
check this out. to avoid phising they made it mandatory.
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/402ecb05-9833-4ca1-83f1-f486056a1c04
If it doesn't work with IE8, try to put the following between < head >  .... < / head >
<meta http-equiv="X-UA-Compatible" content="IE=7">