...

View Full Version : pop window as a var



havey
06-08-2004, 08:00 AM
is it possible to have a pop win script as a var? or how could i use a pop-win script as a var? So when the var is called it opens the pop-up something like so:

var upgradeURL = 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';


Thanks

guowei1000
06-08-2004, 09:18 AM
hmm, i'm nt really skill in javascript so i help as much as possible...

var is to assign a value into element if i'm not wrong so u can store the 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';
as string .
so u can
var upgradeURL = 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum