Results 1 to 2 of 2

Thread: who knows javascript?!

  1. #1
    tehphp Guest

    who knows javascript?!

    Hello... I am having trouble with something to do with iFrames and javascript! I am totally stumped on it...and i must finish it!!!
    So, once upon a time... I have an iFrame...

    Code:
    <iframe src="http://127.0.0.1/test.html">
    And...I have a javascript function that detects if the `src` has changed of that iframe. All good? No!! When i change the `src` outside the iframe, it works and shows the message I want. But, when i change the url INSIDE the iframe, nothing happens. It's almost like...it doesn't change the src of the iFrame. Please help!

  2. #2
    baniyagiri Guest

    src javascript

    Once you have a JavaScript file, you simply need to refer to it in your HTML document. Use this tag:

    <SCRIPT LANGUAGE="JavaScript" SRC="filename">
    </SCRIPT>

    If your script simply defines functions, you can place these tags in the <HEAD> section of the document; otherwise place it where its output should go. The closing </SCRIPT> tag is required, and you should not use JavaScript commands between the tags.

Similar Threads

  1. disappearing javascript
    By barreledaction in forum General Questions
    Replies: 1
    Last Post: 29 Aug 2007, 10:35 AM
  2. element specific javascript
    By gumbo in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 04 Dec 2005, 06:25 PM
  3. element specific javascript
    By gumbo in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 04 Dec 2005, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •