javascript - Object Access in chrome develeper tools doesn't work -
whenever tryed access object in chrome developer tools see error bellow: vm4939:1 uncaught typeerror: cannot read property 'cells' of undefined @ :1:13
my code is:
<head> <script> var new_2elayout; function doonload() { var new_1clayout = new dhtmlxlayoutobject({ parent: document.body, pattern: "1c" }); var new_1clayouta = new_1clayout.cells("a"); </script> </head>
you have in opinion 2 ways that:
1 - declare variables outside function var new_2elayout, new_1clayout;
2 - declare global variables
but best of options first one.
Comments
Post a Comment