-
2 onClick events?
Hi all...
I have a web form where I need to call (2) onclick events....
The 1st:
HTML Code:
<input name="" value="" type="checkbox" onclick="document.location.href='http://www.thisdomain.com'" />
The 2nd calls a greybox script window overlay for normal links:
HTML Code:
<a href="http://thisdomain.com/" onclick="return GB_showCenter('Domain Name', this.href)">Visit Google</a>
Is there a way I can have the overlay function when going to the url?
Thanks in advance!
-
I am not following.
You want #1 to work like #2?
-
Yes, but in a form checkbox...
I want it to: when cllicked go to the url but trigger the onclick event required for the greybox script....
I thought it would be like:
HTML Code:
onclick="document.location.href=('http://www.thisdomain.com', 'return GB_showCenter('Domain Name', this.href)')"
but it's not. lol
-
My offhand guess is:
onclick="return GB_showCenter('Domain Name', 'http://www.thisdomain.com')"
-
Matt, so I was so bad I can't have my old avatar back?
-
-
John-Marc !
I had actually tried your recommendation early on, but in my laughable life - did not have the greybox functioning correctly. In the meantime, I had fixed that issue, and lo and behold - your recommendation works perfectly. lol
Thanks so much for the response - it helped me get back to the basics and resolve the issue - once again you are awesome!
-
Thanks.
BTW - I first saw greybox on your site and researched it. I am now using it on a major clients site in place of popups and they are happy that their support issues have gone down dramatically because they spent a lot of time trying to explain to their customers that their app was not working because the users had between 2 and 9 different popup blockers in their browsers.
So Thank You for that!
-
Yay! I helped with something! lol