| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Assign input variable to onclick event|
I have a search box that has a single input field and a submit button. When the submit button is pressed, an onClick event calls Google's urchinTracker.
I'd like to append whatever variable is put in the search box, to the onClick event so I can see it in Google Analytics:
<input name="searchterm" type="text">
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved