The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Load a Frame from a URL, Can this be done
ckm
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
hojiwar
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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



QUOTE(hojiwar @ Oct 20 2018, 07:06 AM) *

$("#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
This doesn't really address the issue the OP asked about.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 08:11 AM