yourbudweiser
asked on
Open Window w/out Title Bar
I use the following javascript function to open a popup window:
/* Open window*/
var windowHandle = '';
function popOpen(url,name,attribute s) {
windowHandle = window.open(url,name,attri butes);
}
and then open the window like so:
<a href="javascript:popOpen(' /folder/sh owImage.ex e/pdf?id=< %=IDNumber %>','Image ','toolbar =no,resiza ble=yes,sc rollbars=y es,left=0, top=0,scre enX=0,scre enY=0,widt h='+w+',he ight='+h+' ');">
The contents of the popup window are created dynamically but the title bar displays the url of the image displayed in the popup window.
I cannot set the title in the actual popup window. How can I open that window by passing the title or at least not displaying the url. Full screen window is not an option.
Thanks!
/* Open window*/
var windowHandle = '';
function popOpen(url,name,attribute
windowHandle = window.open(url,name,attri
}
and then open the window like so:
<a href="javascript:popOpen('
The contents of the popup window are created dynamically but the title bar displays the url of the image displayed in the popup window.
I cannot set the title in the actual popup window. How can I open that window by passing the title or at least not displaying the url. Full screen window is not an option.
Thanks!
ASKER
Thanks for responding. I tried suggestion 3 but the popup window still displays the URL in the title bar. To be more specific, I am not actually opening an image but making a call to a cgi which builds the page on the fly and then displays the image...
ASKER
After speaking with my programmer, he informs me that I am not opening a window with an image but I am actually opening a window with a PDF... gadzooks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Haven't had a chance to test but thanks for the help!
this will happen as javascript submission is always different from html form submission. so if use a button of type submit and use it to pass the parameter then it will work
I have been sitting on a thread with the same problem for some time now. I tried mplungjan's idea but it won't accept the +escape(url) for me. The page doesn't load.
I don't mean to be rude here but if anybody's got any good ideas my thread is worth 500 points and can be found at:
https://www.experts-exchange.com/questions/21220517/Ridding-of-double-name-in-window-open.html
I hope we can work this out together.
Cheers.
I don't mean to be rude here but if anybody's got any good ideas my thread is worth 500 points and can be found at:
https://www.experts-exchange.com/questions/21220517/Ridding-of-double-name-in-window-open.html
I hope we can work this out together.
Cheers.
2. open an html page and pass the image to it instead
3. change to
<a href="#"
onClick=popOpen('/folder/s
return false">
to make it not try to follow the link