We help IT Professionals succeed at work.
Get Started

Hiding the window location for a window.open call

steva
steva asked
on
251 Views
Last Modified: 2012-05-12
When I open a window with window.open I always see the path to the window at the top, as shown in the image below ("www.cottonwoodonline.com/sw1.html").  This window is loaded with sw1.html with the code below:
      sw1Ref = window.open('sw1.html', ' ', 'width=' + popup.sw1.width + ', height=' + popup.sw1.height + ', left= ' + (myWidth/2 - popup.sw1.width/2) + ', top=' + popup.sw1.top);

Open in new window


This is fine for the this menu application but what if I'm opening a window to a secret directory with images and  I don't want to reveal to everyone where this directory is?   How can control what appears in the window address bar?

Thanks
open.png
Comment
Watch Question
Multitechnician
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE