html-java script in event in form

i made a form, i ask if possible use in single event insert code for use html-javascript?:confused:

If you know what you’re doing then:
You can, in any event, close the php tag and start to code html / javascript.

When you’re done, just re-open the php tag.

example:


?>
<div class="random_class" id="random_id">
<img src=".../blablabla/img.jpg" />
</div>

<script>
alert('hello');
</script>
<style>
.random_class { position: absolute; top: 0px; } /* careful with {}, scriptcase generator might misunderstand it. */
</style>
<?php