samprg
asked on
Update element
Hello,
I have tow Javascript function in html to add website, I need those fonctions use same iframe.
<script language="javascript" type="text/javascript">
// <!CDATA[
function Button1_onclick() {
var iframe = document.createElement('if rame');
iframe.src = "http://www.bing.com";
iframe.style.width = '100%';
iframe.style.height = "60px";
iframe.name = "internal";
iframe.scrolling = "yes";
iframe.marginwidth="0";
iframe.frameborder="0";
iframe.marginheight="0";
iframe.vspace="0";
iframe.hspace="0";
document.body.appendChild( iframe);
}
function Button2_onclick() {
var iframe = document.createElement('if rame');
iframe.src = "http://www.yahoo.com";
iframe.style.width = '100%';
iframe.style.height = "60px";
iframe.name = "internal";
iframe.scrolling = "yes";
iframe.marginwidth="0";
iframe.frameborder="0";
iframe.marginheight="0";
iframe.vspace="0";
iframe.hspace="0";
document.body.appendChild( iframe);
}
// ]]>
</script>
I have tow Javascript function in html to add website, I need those fonctions use same iframe.
<script language="javascript" type="text/javascript">
// <!CDATA[
function Button1_onclick() {
var iframe = document.createElement('if
iframe.src = "http://www.bing.com";
iframe.style.width = '100%';
iframe.style.height = "60px";
iframe.name = "internal";
iframe.scrolling = "yes";
iframe.marginwidth="0";
iframe.frameborder="0";
iframe.marginheight="0";
iframe.vspace="0";
iframe.hspace="0";
document.body.appendChild(
}
function Button2_onclick() {
var iframe = document.createElement('if
iframe.src = "http://www.yahoo.com";
iframe.style.width = '100%';
iframe.style.height = "60px";
iframe.name = "internal";
iframe.scrolling = "yes";
iframe.marginwidth="0";
iframe.frameborder="0";
iframe.marginheight="0";
iframe.vspace="0";
iframe.hspace="0";
document.body.appendChild(
}
// ]]>
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER