2014-10-18 2 views

ответ

0

Использование thiss

myScript.js

var name="Michael"; 

Ваш HTML FILE

<!DOCTYPE html> 
    <html> 
    <body> 
    <script src="myScript.js"></script> 

    <script type="text/javascript"> 
     alert(name); 
    </script> 

    </body> 
    </html> 
Смежные вопросы