vkidv
09-23-2002, 07:05 PM
say i wanted to have more than one pop-up windows in one page, and do not want to define a function to each one....
i think the script might look somthing like this...
function open_mywin(url,height,width) {
window.open(url,height,width)
}
later on in the page... (example)
<a href="javascript:open_mywin(help.htm,200,200)"> Help </a>
basicaly, i want to define each link to create a popup window without making a seperate function for each and every single pop up window i want in my page
im sure ive done this thing wrong:
window.open(url,height,width)
is this supposed do be displayed as a variable?
like:
open_the_window=window.open(url,height,width)
hope you can help
thanx
i think the script might look somthing like this...
function open_mywin(url,height,width) {
window.open(url,height,width)
}
later on in the page... (example)
<a href="javascript:open_mywin(help.htm,200,200)"> Help </a>
basicaly, i want to define each link to create a popup window without making a seperate function for each and every single pop up window i want in my page
im sure ive done this thing wrong:
window.open(url,height,width)
is this supposed do be displayed as a variable?
like:
open_the_window=window.open(url,height,width)
hope you can help
thanx