An iframe instead of a div

How would you change this function to work with an iframe instead of a div? I have an iframe that looks like this:

<iframe id="wmd-input_ifr" frameborder="0" allowtransparency="true"></iframe>


var regExUrl = /https?:\/\/([\w\d-\.]+)?[\w\d-\.]+\.{1}[\w]{1,4}((\/{1})?)([a-zA-Z0-9&-@_\+.‌~#?\/=]*)?/gi;

var div = document.getElementById('div');

div.onkeyup = function(){
  if(div.innerHTML.match(regExUrl)){
   $("div").addClass("link");
  } else {
       $("div").removeClass("link");...
Code (markup):
An iframe instead of a div

from JavaScript http://ift.tt/1Uvvv0t
via IFTTT
Previous
Next Post »
Thanks for your comment