Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Call Javascript function from php

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Nov 24, 2015 at 16:36 comment added Jayelef Thanks for your explantion @Quentin
Nov 24, 2015 at 16:35 comment added Quentin @Jayelef — Since the PHP executes on a different computer to the JavaScript, yes, it is impossible. You have to deliver the JavaScript to the client and get the client to execute it. Your current approach delivers the JavaScript to the client and then throws away the <head> containing half the code you wanted to execute.
Nov 24, 2015 at 16:25 comment added Jayelef I know there are many method to obtain this result, however is it just impossible to call this function from php code?
Nov 24, 2015 at 16:15 history answered Quentin CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /