how can i grab the arguments of a javascript function?
below is my code,
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-45-9");
pageTracker._trackPageview();pageTracker._addTrans("3128", "", "20.4600", "0.0000", "8.1900", "SFO", "CA", "US");
pageTracker._addItem("3128", "23317", "Cheese ", "", "6.2900", "1");
pageTracker._addItem("3128", "23318", "Lazzaroni", "", "1.9900", "1");
pageTracker._addItem("3128", "23316", "Italian Food", "", "3.9900", "1");
pageTracker._trackTrans();
</script>
For the code above, I want to grab the arguments of the functions pageTracker._addItem() to use it in my javascript code. How would i do that?
The problem is I do not have access to the complete source code, but only i can add some javascript and html to it, this site is hosted at network solutions, and they do not provide access to their code for some plans.... so i need to grab the arguments of the javascript function above and use it my javascript, which i can add to the code...
Thanks
pageTracker.__addItemwith a wrapper that records, and then calls the actual function, but without knowing more about the intentions of OP, there's no point attempting a solution that just might not be.