Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15604
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2012-08-29 10:14 -0700 |
| Message-ID | <20299183-1ca3-4cd2-b17e-0cc86bf59f22@googlegroups.com> (permalink) |
| Subject | javascript in another file |
| From | jags <jagatm@gmail.com> |
i am trying to do like this
js file
var myvar =
{
myfunc1: function {},
myfunc2: function{}
};
in html file i include this script through src
then on body onload i call myvar.myfunc1;
in crome dev console i see error near var, why so ?
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
javascript in another file jags <jagatm@gmail.com> - 2012-08-29 10:14 -0700
Re: javascript in another file Stefan Weiss <krewecherl@gmail.com> - 2012-08-29 22:38 +0200
Re: javascript in another file jags <jagatm@gmail.com> - 2012-08-30 04:01 -0700
Re: javascript in another file jags <jagatm@gmail.com> - 2012-08-30 05:28 -0700
csiph-web