Jump to content

Open window problem (Yes, I am a rookie....)


YankeeDoodle

Recommended Posts

Hi,

hope somebody knows the solution to my problem.

 

I want to open a photogallery in a new window, after clicking the button on the home page of course.

Now opening a new window is not the problem, the tricky part is to get rid of any and all surrounding elements, such as directory, links, scrollbars etc. etc.

I really want a BLANK window, and it seems to work with the function window.open, although even I set all the params to NO, it keeps showing the "links" bar (the space where you type in the URL) and I cannot get rid of it.

 

I use the following code (and IE 8 as standard browser):

 

onclick="window.open('gallery.html','PhotoGallery','width=1200,height=600,toolbar=no,location=no,directories=no,

status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')"

type="button">

 

Please note: see the location=no param? it doesn't do it's job.......

 

Is there somebody out there with a solution? It would be really appreciated.

Thanks,

/Hans

Link to comment
Share on other sites

Dear Eric,

thank you so much for your contribution. I also tried your suggestion (as I did earlier with the one Stefan provided) but again, your solution doesn't solve my problem and the code is (except for popup.php - which program I do not have) in essence the same as mine.

Could it be my browser (IE 8) or the way it is configured?

Thanks again,

/Hans

Link to comment
Share on other sites

Yankee:

I am, BY FAR, the least experienced one to answer you. You have heard from two of our top experts herein.

 

One comment: Eric's answer seems to imply working with PHP, which requires a few things. First the document needs to be saved with a .php extension rather than .html. Then it needs to be on a server that offers a "php-engine". (Most do). You can load a program like WAMP (Free.) on to your computer which will allow you to run php files locally on your home computer.

 

Hope I'm not "preaching to the choir!"

 

Alfie

Link to comment
Share on other sites

OK, guys. I have PHP on the host server and on my development server here, so I am going to try it again with

the PHP extension.

Thanks for the understanding and all the help sofar.

Greetings from sunny Amsterdam (although thanks to web development is in the middle of the night right now :rolleyes:)

/Hans

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...