Is there a way to use javascript code without using the <script> tag?

So, I am working on my online portfolio using prosite.com, and have created some simple hanging tools using javascript ( http://wojtek.szukszto.com/index.html ). The problem is that prosite.com will not let me use the <script> tag ... Is there a way to do this? Maybe like external html? I don’t know ... I am not very good at coding, so any help would be appreciated.

+3
source share
3 answers

You can use them as DOM Events , for example

<div onclick="alert('cat');">
  I <strong>Really</strong> want a cat!
</div>

 <body onload="//you can put a whole bunch of stuff here"></body>
 (It is equivalent to window.onload = function(){ //stuff })
+6
source

javascript- head html-

<head>    
<script src ="/JS/yourjsfile.js"></script>
</head>    

, JS head

0

How do I do this by specifying a script type. ProSite already has javascript built in. I use:

<script type="javascript"> Code-Goes-Here </script>
0
source

All Articles