Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spaces in widows title with window.open

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
i searched in archives and found the answer to my bug... but i have one more question.

here is the old post that has been made :
======================
You can't have a space in the name parameter, in your case you're using the string "Whos Online". Try changing it to

function show_it(){
var win2 = window.open("OnLine.asp", "Whosonline",
"resizable=no,statusbar=no,menubar=no,height=400,width=150");
}
======================

is there an other way to have a space in the name parameter ? i tryed my%20page and it doesn't work... can we really NOT have spaces in windows title with windows.open ? Best regards,
Elise, XML learning girl X-)
 
Try:

function show_it(){
var Name1="Whos";
var Name2="Online";
var win2 = window.open("OnLine.asp", Name1 + %20 + Name2,
"resizable=no,statusbar=no,menubar=no,height=400,width=150");
}

I have no clue if this will work, it just popped in my head.
 
The name attribute is almost wholly irelevant. You can access the window through the return object (win2) of the open method.

If you are applying some variable that has spaces in it, just store the variable as a new string without spaces:

somenamewithoutspace = somename.replace(/\s/g,'') jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top