Should the following display “Test” in a message box? If not, what changes should I make?
<html>
<base href="http://www.google.com"></base>
<body>
<script language="JavaScript" type="text/javascript" src="test.js"></script>
</body>
</html>
test.js contains:
alert("Test");
Yes. See here I’ve inserted this into a jsFiddle example. Next time try to just do it instead of asking a question. You can see the example here
is the command that does a msg box!