Hi All,
I need to add a dynamic iframe at page load using JS (like below just after the beginning of the <body> tag.
The issue here is if I try to add iframe using document.write then it shows me the <html><head><bo dy>....</html> wrapped inside the iframe tag as shown in the attached snapshot (makeframe.jpg) .
Can someone please share the code snippet of adding the same using JavaScript?
Thanks in advance!
I need to add a dynamic iframe at page load using JS (like below just after the beginning of the <body> tag.
Code:
<iframe src="" HEIGHT=1 WIDTH=1 FRAMEBORDER=0></iframe>
Code:
document.write('<iframe frameborder="0" scrolling="no" height="300" width="300" name="askFrame" src=""></iframe>');
Thanks in advance!
Comment