Ok, I am a newbie when it comes to this. SO will I add it in the
script like this?

<script type="text/javascript">
    //<![CDATA[

function initialize() {}

window.onunload = function(){
  try{GUnload()}catch(e){}
   }

    //]]>
    </script>



On Feb 10, 6:04 pm, Esa <[email protected]> wrote:
> On Feb 10, 11:12 am, Aries <[email protected]> wrote:
>
> > Is there a better way to do this so that no script error will appear
> > when browsing the pages?
>
> A safe way to avoid errors is to use try...catch.
>
> window.onunload = function(){
>   try{GUnload()}catch(e){}
>
> }
>
> ..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to