I
iMarcW
Usually, when I want a link to open in a new window with certain specs,
I use a function and link like the following:
function newWindow() {oneWindow =
window.open('directory/index.html','oneWin','toolbar=no,location=no,menub
ar=no,scrollbars=no,status=yes,resizable=no,width=650,height=508,left=75,
top=0')}
<a href="javascript:newWindow()">Click here to open a new window</a>
But what if I have dozens of these kinds of links on my page, all
opening different files but using the same specs for each window? How
can I use a variable to avoid making a different function for each link?
MW in Mpls.
I use a function and link like the following:
function newWindow() {oneWindow =
window.open('directory/index.html','oneWin','toolbar=no,location=no,menub
ar=no,scrollbars=no,status=yes,resizable=no,width=650,height=508,left=75,
top=0')}
<a href="javascript:newWindow()">Click here to open a new window</a>
But what if I have dozens of these kinds of links on my page, all
opening different files but using the same specs for each window? How
can I use a variable to avoid making a different function for each link?
MW in Mpls.