There are three tabs in each will be an iframe and it is necessary that when they are pressed they are downloaded and not immediately upon entering the site. Is this possible?

    1 answer 1

    Yes, it is possible. Just when you need to (through a delay or for some event) assign the required address to the frame:

    frames[0].location.href=url; 
    • Some browsers can block such manipulations with iframe, better by timeout or action add it to the DOM in the right place - Alexandr Kiseloy
    • How to do it?) - Basszilla
    • one
      If you use jQuery, then $('#TARGET_CONTAINER').html('<iframe src="FRAME_URL"></iframe>') , if not then var frame = document.createElement("iframe"); frame.src = "FRAME_URL" var frame = document.createElement("iframe"); frame.src = "FRAME_URL" and insert where you want - Alexandr Kiseloy