Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which of the following attribute takes the source of the PHP file?

  2. A.

     img

    B.

     src

    C.

     source

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The syntax to referencing a PHP file using external JavaScript is consistent enough with what we already know:

    <script type="text/javascript" src="myscript.php">


Be The First To Comment