1. alert("first line in global js");
  2. var getCookie = function(cname) {
  3. var name = cname + "=";
  4. var ca = document.cookie.split(';');
  5. for(var i=0; i<ca.length; i++) {
  6. var c = ca[i];
  7. while (c.charAt(0)==' ') c = c.substring(1);
  8. if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
  9. }
  10. return "";
  11. };
  12. /*
  13. window.onload = function(){
  14. alert("window loaded");
  15. document.getElementById("neo_iframe").src = "http://10.224.15.51/neo";
  16. alert("src changed");
  17. };
  18. */
  19. var fun = function(){
  20. alert("function");
  21. };
  22. alert("global js file");