...

View Full Version : pop up menu



firestar_lene
06-07-2004, 03:51 AM
i want to put condition like if..then ..else,if the first condition is true,then it will popup a window that contains file 1.normally ,as what i know,pop up will display if there is onclick button.but it is possible if after the condition, it will straight away display pop up window?i want to have the sample coding

if a true
then display pop up that contains file 1
elseif b true
then display pop up that contains file 2

glenngv
06-07-2004, 05:29 AM
You display a popup by using the window.open (http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html) method.


if (a){
window.open(file1, "mypopup");
}
else if (b){
window.open(file2, "mypopup");
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum