add onUnload javascript to Shopping Cart Templage

Questions and answers about ShopSite Custom Templates

add onUnload javascript to Shopping Cart Templage

Postby twlontz » Sat Mar 03, 2012 10:02 am

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
twlontz
 
Posts: 12
Joined: Thu Oct 06, 2011 1:17 pm

Re: add onUnload javascript to Shopping Cart Templage

Postby Jim » Sat Mar 03, 2012 4:07 pm

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 9 guests