M
M
Max555552018-11-24 10:16:45
Java
Max55555, 2018-11-24 10:16:45

Is it possible to insert java code into the html code of a site?

There is a task on the site that can only be solved using java (not JavaScript) code, is it possible to somehow insert java code into html code?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Antony Tkachenko, 2018-11-24
@LemonFox

www.simplehtmlguide.com/javaapplets.php
But this doesn't work very well.
Describe the task in more detail, what do you want to achieve with this? Why did you decide that this problem can only be solved in java?

A
Alexander Taratin, 2018-11-24
@Taraflex

https://plasma-umass.org/doppio-demo/
https://www.javapoly.com/

P
Pavel, 2018-11-24
@PavelMonro

No, these are different things. Java is used to create applications, and javascript is used to execute in the browser.
https://geekbrains.ru/posts/java_vs_javascript

V
Vechkov Alexander, 2018-11-24
@Comrues

If you need to insert javascript code into html, then this is done as follows: you
wrap the code with a tag <script></script>
, usually such code is placed before the closing tag body
Example:

<script>
    $('.op-clo').on('click', function() {
        $('body .h7-nav-box').toggleClass("show");
    });
</script>

A
Alexander, 2018-11-24
@Astrgan

You can use java as a server language (as php is used).
https://www.youtube.com/playlist?list=PLiJ76e8LBYQ...

X
xmoonlight, 2018-11-24
@xmoonlight

https://ru.wikipedia.org/wiki/Java_Web_Start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question