How do you load url from textbox in iframe to HTML file via javascript?
var oIFrame = document.getElementById("id_of_iframe"); oIFrame.src = document.getElementById("id_of_textbox").value;
Or with document.frames if it's the only iframe you're using:
var myIframe = window.document.frames[0]; // lets grab the iframe object if (myIframe != null){ myIframe.src = document.getElementById("id_of_textbox").value; // set the value as source. }
Just add, I think, via jQuery
$('iframe#guid').src( $('#textbox_id').val() );
with error checking:
var iframe = $('#guid'); if(iframe.length > 0){ iframe.attr('src', $('#textbox_id').val()); }