Page 1 of 1

add onUnload javascript to Shopping Cart Templage

PostPosted: Sat Mar 03, 2012 10:02 am
by twlontz
How can I add an onUnload="javascript" to the <BODY> tag of the Shopping Cart Template? I see the BODY tag in my template; however, when I look at the page source using FireFox, I see that the tag reads <body onunload="button_click=0";>

Is the a way to concatenate my javascript to this?

Thanks

Re: add onUnload javascript to Shopping Cart Templage

PostPosted: Sat Mar 03, 2012 4:07 pm
by Jim
You will need to modify the template for the shopping cart to add something to the body tag.

The "onunload="button_click=0"; is probably there to prevent an issue when using the browser back button.