function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JonathanMClarkeJonathanMClarke 

Help Converting HTML Javascript call to Apex Javascript Call

<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider();
});
</script>

 Currently trying to convert an old HTML template into a new APEX website. Can someone try and help me convert the above call? I'm having a terrible trouble trying to get this function to work on this site. Thanks in advance for all potential thoughts. Needless to say I'm learning all this stuff for the 1st time!



Navatar_DbSupNavatar_DbSup

Hi,

 

Try the below code snippet as reference:

 

<apex:page>

  <script>

alert('asdf');

window.onload = test;

function test()

{

    alert('calling test');

 

}

</script>

</apex:page>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.