Is it possible to add an onlick event to a link so as to execute javascript:window.open using the editor.
I have this javascript in the header of the aspx page
var win = null;
function NewWindow(mypage,myname,w,h,scroll,resizable){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=' + resizable
win = window.open(mypage,myname,settings)
}
Which nicely opens a window in centre of screen.
I wish to be able to have a link like so
<A
onclick="NewWindow(this.href,'name','746','532','no','no');return
false" href="http://www.cutesoft.net">cutesoft.net</A>
How would I go about accomplishing this?
Thanks