When inserting HTML code with PHP the <script> brackets are not being interpreted though the <p> tag works just fine.
This is the PHP excerpt:
echo "<p>Test</p><script type='text/javascript'>document.getElementById('signalframe1').src = 'http://live.telldus.com/device/switch?mode=on&id=101443';</script>";
Is my syntax wrong or is later inserted JavaScript just not being executed?
Thanks a lot!
signalframe1element (I'm guessing an<iframe>) defined above in the outputted HTML code? If not,document.getElementById('signalframe1')will return empty.