Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>doubt in window.open()

doubt in window.open()

diwakar
01-08-2006, 07:34 PM
is it possible to pass a javascript variable as a parameter for the name attribute in the window.open() method


window.open(url,'window_name',"location=NO,directories=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes");

can window_name be a javascript variable or is it necessary for it to be a string only??

If it is possible for it to be a variable can you please suggest an example using this.

Bill Posters
01-08-2006, 09:29 PM
e.g.
function popupWin(url,winName) {
var newWin = window.open(url,winName,'location=no,directories=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes');
newWin.focus();
}



<a href=http://codingforums.com/archive/index.php/"/conditions.php" onclick="popupWin(this.href,'conditions'); return false;">Conditions</a>


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

Hyperthreading hurts s
HP sharpens blade PC l
problem with an ImageP
Modifying a navigation
convert text to intege
Anyone knows to clear 
Automatically generate
document.getElementByI
Hi question about stor
Netscape Problems :-( 

News Archive

Month and Year drop do
navigation button/imag
doubt in window.open()
undo redo script 
Mimick "View Source" w
print Question 
No-image representatio
What's wrong with this
Urgent help in Javascr
Gurt Menu assistance 

Related stories:

Month and Year drop down selection boxes
navigation button/image
undo redo script
Mimick "View Source" with JavaScript
print Question
No-image representation

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics