Announcement

Collapse
No announcement yet.

html-java script in event in form

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    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:
    Code:
    ?>
    <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
    Regards,
    Cavadinha

    Development Team
    Netmake - IT Solutions

    Comment

    Working...
    X