Login | Register | FAQ
Anonymous

Javascript function

+ Post a reply

3 posts Page 1 of 1


Javascript function

by Grow » Thu May 21, 2015 12:26 am

Hi, I need your help with my code. This function start when I reload page, but it must start when I call it. And it choose the last choice "document.write("<?php KomuPoslat("Teta"); ?>");" why?

Here is javascript code:
Code: Select all
<script>
            function Prijemce(jmeeno) {
               if (jmeeno == "Misa"){
                  document.write("<?php KomuPoslat("Misa"); ?>");
               }else if(jmeeno == 'Mamka'){
                  document.write("<?php KomuPoslat("Mamka"); ?>");
               }else if(jmeeno == 'Milacek'){
                  document.write("<?php KomuPoslat("Milacek"); ?>");
               }else if(jmeeno == 'Bracha'){
                  document.write("<?php KomuPoslat("Bracha"); ?>");
               }else if(jmeeno == 'Deda'){
                  document.write("<?php KomuPoslat("Deda"); ?>");
               }else if(jmeeno == 'Tatka'){
                  document.write("<?php KomuPoslat("Tatka"); ?>");
               }else if(jmeeno == 'Teta'){
                  document.write("<?php KomuPoslat("Teta"); ?>");
               }
            }
         </script>
User avatar

Grow

  • Posts: 1
  • Joined: Thu May 21, 2015 12:19 am

Re: Javascript function

by XainPro » Thu May 28, 2015 10:41 pm

goto source code of your browser and show me the complete browser rendered source code
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Javascript function

by abhiup81 » Wed Oct 07, 2015 10:44 am

This is row code. Can you kindly provide the html code rendered by browser? I can help you out if can do that.
User avatar

abhiup81

  • Posts: 9
  • Joined: Wed Oct 07, 2015 10:18 am
  • Location: India


+ Post a reply

Page 1 of 1