Click to See Complete Forum and Search --> : text in locationbar


DonMArtin
09-03-2003, 04:23 PM
Hello,

I use window.open onClick on my thumbnails and then document.write the larger pics into that window. The locationbar always shows the url of the calling page because the opened window does not have a title. Even when I use an existing htm-file and overwrite it with document.write, the title is gone. Locationbar=no or location=no seems neither to work with IE nor does it on XP. Is there a way to put my own text into the locationbar?

Thank You

Alex

Khalid Ali
09-03-2003, 04:36 PM
No.Locationbar is suppose to show you the currently loaded document.

WHat you can do is in a popup don't show locationbar at all

DonMArtin
09-03-2003, 04:45 PM
Thank You for thinking. I just realized, what a stupid question that was! I use document.write to put pics in the window. So why didn't I document.write <title>SOMETHING</title> too ???

Slam myself...

But concerning the locationbar=no or location=no. I think that doesn't work with IE.

Thanks anyway and bye bye

Alex

Khalid Ali
09-03-2003, 04:53 PM
lol..you are welcome.
locationbar does work in all IE versions

show us the code for that part

DonMArtin
09-03-2003, 04:58 PM
function img_win(bild,alt) {

pre = "<html><head><title>" + alt + "</title><link rel='stylesheet' href='css/wk2.css' type='text/css'></head><body>";

post = "<span class='img4x3'><img src='img/" + bild + "' alt='" + alt + "'></span>" + "<p class='bes4x3'>" + alt + "</p>";

inp = "<input type='button' name='button' value='Fenster zu' class='inpcl4x3' onClick='window.close()'></body></html>";

insert = pre + post + inp;

popup = window.open("gross.htm","gross","height=400,width=450,left=25,top=10,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,locat ionbar=no");

popup.focus();
popup.document.write(insert);
popup.document.close();
}

Khalid Ali
09-03-2003, 05:04 PM
the line below

popup = window.open("gross.htm","gross"," height=400,width=450,left=25,top=10,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,locat ionbar=no");

creates a popup window on my machine(win2k)
IE6+ and Mozilla 1.4

without locationbar

:D

DonMArtin
09-03-2003, 05:15 PM
that's what I said...XPlode seems to be different!

Alex