0

Is there any way to return URL in this code via SIMPLE HTML DOM:

<div class="film">
<script type="text/javascript">

            jwplayer("myElement").setup({
                file: "http://images.example.com/system.mp4",
                image: "",
                width: 500
            });
</script>
</div>

I want to have this URL:

http://images.example.com/system.mp4
2
  • No. Javascript is not HTML, and does therefore not end up in a nice DOM structure. The content of the JS tag is seen as, ah, one HTML tag. Commented Dec 18, 2014 at 8:26
  • You can access the (JS code) text content of a script tag: stackoverflow.com/questions/9333914/… - just do a regex search on that text. Commented Dec 18, 2014 at 8:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.