469,344 Members | 6,158 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

Simple Java Question

This is example of my page:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <JAVA>
  4. </JAVA> 
  5. <title> my title </title>
  6. </head>
  7. <body>
  8. </body>
  9. </html>
Ok. I can only add java script codes in block <JAVA> and </JAVA>
I add this code in above block:
<script type='text/javascript' src='external script url' ></script>
I want this basic script don’t run in JAVA block ( <JAVA> ) and I call it in body
How can I simply call this basic code in body tag? (I can't add java script codes in body)
Aug 31 '11 #1
8 1174
Dormilich
8,652 Expert Mod 8TB
you canít. <java> is an invalid/unknown HTML tag, hence nothing will happen. to execute JavaScript code use the aforementioned <script> tags.
Aug 31 '11 #2
<java> isn’t my tag, this is an example.
I want call my scripts that are in <script> tags, to run in another place. can u understand my language?! I can't type English correctly!
Sep 1 '11 #3
Dormilich
8,652 Expert Mod 8TB
I want call my scripts that are in <script> tags, to run in another place.
won’t work. if you want to run a script, use <script> tags. period.

PS. English ain’t my mother tongue either
Sep 2 '11 #4
Can't I use function rule?
Please learn me.
Sep 2 '11 #5
Dormilich
8,652 Expert Mod 8TB
what is function rule?
Sep 2 '11 #6
Dormilich
8,652 Expert Mod 8TB
that’s JavaScript. and JavaScript only works from <script> tags.
Sep 2 '11 #8
drhowarddrfine
7,435 Expert 4TB
To expand a bit, JavaScript is not Java.
Sep 2 '11 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Trimbitas Sorin | last post: by
13 posts views Thread by Jason Swett | last post: by
5 posts views Thread by Henry | last post: by
51 posts views Thread by Alan | last post: by
7 posts views Thread by Scott Frankel | last post: by
3 posts views Thread by Chrism2671 | last post: by
Niner49
5 posts views Thread by Niner49 | last post: by
3 posts views Thread by newjavastudent | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.