473,465 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Simple Java Question

5 New Member
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 1408
Dormilich
8,658 Recognized Expert Moderator Expert
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
Youness Alma
5 New Member
<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,658 Recognized Expert Moderator Expert
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
Youness Alma
5 New Member
Can't I use function rule?
Please learn me.
Sep 2 '11 #5
Dormilich
8,658 Recognized Expert Moderator Expert
what is function rule?
Sep 2 '11 #6
Dormilich
8,658 Recognized Expert Moderator Expert
that’s JavaScript. and JavaScript only works from <script> tags.
Sep 2 '11 #8
drhowarddrfine
7,435 Recognized Expert Expert
To expand a bit, JavaScript is not Java.
Sep 2 '11 #9

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

Similar topics

2
by: Trimbitas Sorin | last post by:
Hello I have a simple syntax question : What does the following line mean: 1: %checkType; ?? I know that @test="" is an array and $test="" is a simple variable. Thank you With best regards...
13
by: Jason Swett | last post by:
I want to do graphics with C++. Surprisingly, so far nobody has been able to tell me anything helpful. How do I do it? Any input would be greatly appreciated. Jason
5
by: Henry | last post by:
HTML is an acronym for Hyper Text Markup Language. But why is it hyper? Too much java . . . http://takeoff.to/henry
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
7
by: Scott Frankel | last post by:
Still too new to SQL to have run across this yet ... How does one return the latest row from a table, given multiple entries of varying data? i.e.: given a table that looks like this: color...
1
by: disha manikumar | last post by:
Simple java code to read an excel sheet and extract only few fields by treating the excel sheet as a flat file. Can anyone suggest a simple java code for this?
3
by: Chrism2671 | last post by:
I'm new to XSLT/XML and I have a very simple, quick question. i've been trying to convert simple xml files into CSV files and have made a simple XSLT template using the w3 tutorials, but it doesn't...
5
Niner49
by: Niner49 | last post by:
I want my program to ask the user if they would like to play another game of rock, paper, scissors. However, I want it to only accept (y for yes or n for no). At this point all I have been able to...
3
by: newjavastudent | last post by:
Dear All, I have a huge text file with name animal.txt, I have the following sample data: >id1 lion >id2 horse cat >id3
2
Steel546
by: Steel546 | last post by:
If I'm using a command line argument using args and trying to pass it to a method with 2 parameters, is there a special way to do so? basically it's public static void main(string args) { ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.