Code:
function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var popwin=open(imgsrc.href.replace(/\.[^\.]*$/,'.htm'), "_self", popupsetting[1])
popwin.focus()
return false
}
else
return true
}
It would be easier not to disable the popupsetting feature and to just change the target specification in it to _self as I have in the above version of this handy function. With this change, both the href_target and the info after the comma in popupsetting (as long as it is valid, use the demo default) become meaningless. In other words, just use:
Code:
//Toggle popup link setting: popupsetting[0 or 1, "pop up window attributes" (if 1)]
var popupsetting=[1, "width=500px, height=400px, scrollbars, resizable"]
for that part.
Bookmarks