Click to See Complete Forum and Search --> : javascript with cgi.pm question


Phibermaster
07-06-2006, 08:38 AM
Hi!

Fairly new to programming so this is probably a very easy question. I am using cgi.pm for all my html output, now i want to add a javascript action on one of my links but cant make it work. What i want is that if i click on the link a new window shall open with a certain height and width etc. How do i do this?

Charles
07-06-2006, 08:50 AM
As I recall, it's something like a ({href => q|http://www.w3.org/|, onclick => q|window.open (this.href, 'child', 'height=400,width=300'); return false|}, q|W3C|)

Phibermaster
07-06-2006, 10:41 AM
Thank you!

It works just fine!