Load a Frame from a URL, Can this be done |
Load a Frame from a URL, Can this be done |
ckm |
Sep 6 2018, 08:29 PM
Post
#1
|
Group: Members Posts: 3 Joined: 6-September 18 Member No.: 26,707 |
I have a 3 frame website in which one frame contains a menu of blog articles that load in a difference frame when clicked on. I'd like to address the website via a URL that loads one of the blogs initially. Can this be done, and how?
Thanks ckm |
hojiwar |
Oct 20 2018, 09:06 AM
Post
#2
|
Group: Members Posts: 1 Joined: 20-October 18 Member No.: 26,733 |
$("#button").click(function () { $("#frame").attr("src", "http://www.example.com/"); }); HTML: <div id="mydiv"> <iframe id="frame" src="" width="100%" height="300"> </iframe> </div> <button id="button">Load</button> here online web programming tutorial https://www.welookups.com |
Darin McGrew |
Oct 20 2018, 04:34 PM
Post
#3
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
$("#button").click(function () { $("#frame").attr("src", "http://www.example.com/"); }); HTML: <div id="mydiv"> <iframe id="frame" src="" width="100%" height="300"> </iframe> </div> <button id="button">Load</button> here online web programming tutorial https://www.welookups.com |
Lo-Fi Version | Time is now: 10th June 2024 - 05:48 AM |