Home Javascript How to change the src (url) of a IFrame using JavaScript?
 
 
 

How to change the src (url) of a IFrame using JavaScript?

PDF Print E-mail

Question: How to change the src (url) of a IFrame using JavaScript?

 

Answer:

document.getElementById('iframe_id').src = 'newpage.html

iframe_id = The ID for the IFrame

newpage.html = The page that you want to load into the IFrame

 

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!