Hello.
I have a problem with javascript: when I add "<-script type="text/javascript" src="content.js">, javascript stop running. I have nothing in content.js, is just for test.
I made a short script without "content.js" and working. Why?
Example: THIS WORK
<html>
<head>
<title>trala</title>
<script type="text/javascript">
function jucator(){
alert('cata');
}
</script>
</head>
<body>
<form>
<input type="button" name="cauta" value="Cauta" onclick="jucator()" />
</form>
</body>
</html>
THIS don't work
<html>
<head>
<title>trala</title>
<script type="text/javascript" src="content.js">
<script type="text/javascript">
function jucator(e){
alert('cata');
}
</script>
</head>
<body>
<form>
<input type="button" name="cauta" value="Cauta" onclick="jucator()" />
</form>
</body>
</html>




Reply With Quote
Bookmarks