help to call JS in html page RRS feed

  • Question

  • i have 2 files index.html and example.js I want to merge these two files in one file

    i need insert js file in html page.


    					<script type="text/javascript" src="PrayTimes.js"></script>
    					<div align="center" id="prayTimeContainer"></div>
    					<script type="text/javascript">					
    						var date = new Date(); // today
    						var times = prayTimes.getTimes(date, [32.0004800,  44.3308390], +3, 0, '12h');				
    						html = '<div class="pray_time">';
    						html += times['imsak'].toUpperCase()+'|';
    						html += times['fajr'].toUpperCase()+'|';
    						html += times['sunrise'].toUpperCase()+'|';
    						html += times['dhuhr'].toUpperCase()+'|';
    						html += times['asr'].toUpperCase()+'|';
    						html += times['sunset'].toUpperCase()+'|';
    						html += times['maghrib'].toUpperCase()+'|';
    						html += times['isha'].toUpperCase()+'|';
    						html += times['midnight'].toUpperCase();		
    						html += '</div>';
    						document.getElementById('prayTimeContainer').innerHTML = html;	


    this page is related to an external fileJS

    In short I want to merge the two files into one Html file

    Saturday, June 3, 2017 1:37 PM

All replies

  • This is a very old kind of classic HTML web site question, even from before the time of ASP. 

    If you really want this than visit a HTML forum.

    For instance this one, from which I nothing know but just found searching with Google.

    In this forum your question is simple OFF TOPIC


    Saturday, June 3, 2017 1:41 PM
  • How is this relevant to VB? If this is then you need to explain how.

    Sam Hobbs

    Saturday, June 3, 2017 4:50 PM
  • Hi KORG.Pa3x,

    Since this forum is discussing and asking questions about the Visual Basic programming language,
    IDE, libraries, samples, and tools, and your issue is more related to VB6. This link about vb6, please refer that:

    Thank you for participating in the forum activities.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, June 5, 2017 2:04 AM