one function, many new window links

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,206
Latest member
Zenden

Latest Threads

Top