I am having problem with external javascripts. My OS is XP Pro. I am told to
create an external javascript using a .js extension. (I did that) The
external .js is very simple, containing:
function a_message()
{
alert('I came from an external script! Ha, Ha, Ha!!!!');
}
I am told to create an HTML page that accesses the .js script. (I did that).
The web page is very simple, containing:
<html>
<head>
<SCRIPT language="JavaS cript" SRC="jxt1.js"></SCRIPT>
</head>
</html>
When I open the page, nothing happens.
When I go to the .js file, to examine/edit it, and 'click' it, nothing
happens.
Do I have to do anything special to create and use external javascripts with
XP Pro?
This appears very basic but please answer. I need the ability to create an
external javascript with a .js extension and have the HTMl pages access that
external script?
create an external javascript using a .js extension. (I did that) The
external .js is very simple, containing:
function a_message()
{
alert('I came from an external script! Ha, Ha, Ha!!!!');
}
I am told to create an HTML page that accesses the .js script. (I did that).
The web page is very simple, containing:
<html>
<head>
<SCRIPT language="JavaS cript" SRC="jxt1.js"></SCRIPT>
</head>
</html>
When I open the page, nothing happens.
When I go to the .js file, to examine/edit it, and 'click' it, nothing
happens.
Do I have to do anything special to create and use external javascripts with
XP Pro?
This appears very basic but please answer. I need the ability to create an
external javascript with a .js extension and have the HTMl pages access that
external script?
Comment