WHAT'S NEW?
Loading...

Javascript get url with iframe


Tutorial Details
  • Judul: Javascript
  • Difficulty: Beginner
  • Platform: Javascript
  • Bahasa Scripth: Javascript
  • Software : Notepad++
  • Estimated Completion Time: 15 minutes
  • Created:Ricko Nada (Pustaka Flash)





live demo :
Demo : Click me

Scripth yang digunakan :
 <script>

    function getQueryVariable(variable) {
      var query = window.location.search.substring(1);
      var vars = query.split("&");
      for (var i=0;i<vars.length;i++) {
        var pair = vars[i].split("=");
        if (pair[0] == variable) {
          return pair[1];
        }
      }
    }
    </script>

    <script>
    document.write('<iframe src ="'+ getQueryVariable("url") + '" width="100%" height="400"><p>Your browser does not support iframes.</p></iframe>')
    </script>
itulah sekiranya tutorial Javascript get url with iframe semoga membantu ,...

0 komentar:

Post a Comment