# Load URL into a htmlframe

**URL:** <https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326>\
**Category:** Uncategorized\
**Created:** [July 21, 2004, 4:08pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326 "2004-07-21T16:08:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TobbeBobbe](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TobbeBobbe](https://forum.kirupa.com/u/TobbeBobbe)\
**Post date:** [July 21, 2004, 4:08pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/1 "2004-07-21T16:08:26Z")

</div>

Okay. I got a swf in one “html frame” and I wanna load a url into another one. on(release) { getURL(“my.html”, “myframe”); } doesn’t work. It just open a new window. Pleease help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:26pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/2 "2004-07-21T16:26:20Z")

</div>

Hi, it should work!

I work with this code on the buttons:

on (release) {  
getURL(“your.html”, “yourframe”);  
}

Did you give your frame the same name (yourframe)?

Try “name” and “ID”, some browsers need also the “ID”.  
I uses inlineFrames for this. Here an example of a site I made that way:

> **[Waldemar Hauschild - 4kamera](http://4kamera.de/)**
>
> Waldemar Hauschild, Kameramann für Film und Fernsehen

I hope that helps

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:33pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/3 "2004-07-21T16:33:03Z")

</div>

Oh, no I didnt name my frame that way. I suppose you don’t mean the filename, like myframe.htm… How’s the tag to give my frame a name? p \<frame name=“hmhm” width=“70%”\> ?

nice site, btw btw. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:34pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/4 "2004-07-21T16:34:15Z")

</div>

heh, hm, What do you mean with inlineFrames?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:36pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/5 "2004-07-21T16:36:37Z")

</div>

> [@TobbeBobbe](#):
>
> Okay. I got a swf in one “html frame” and I wanna load a url into another one. on(release) { getURL(“my.html”, “myframe”); } doesn’t work. It just open a new window. Pleease help.

You need to specify the correct target for the geturl. In this case, the target will be whatever the name of the frame is that you want to load the page into. Not the title of the page in the frame, but the actual name of the frame that was defined in the frameset. I hope this makes sense… Just make sure you’re using the _exact_ frame name and it will work, if it is even a little bit different then it will load a new page.

-EG

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:43pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/6 "2004-07-21T16:43:45Z")

</div>

Hmm, defined in the frameset. Every frame got its one .htm and a name before that. so like “myframe.htm” is that what you mean? Oo thanks for the help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 4:57pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/7 "2004-07-21T16:57:45Z")

</div>

nah dude, it’s not the filename - because any frame could have any number of different files in it… it’s the name of the actual frame as defined in your frameset html… ie.

Here’s an example…

```auto
        <frameset cols="200,*" border="0">
	        <frame src="Navigation.htm" name="LeftFrame">
		<frameset rows="*,50" border="0">
		       <frame src="About.htm" name="MainFrame">
		       <frame src="Copyright.htm" name="BottomFrame">
		</frameset>
	</frameset>

```

Here, the frame names would be “LeftFrame”, “MainFrame”, and “BottomFrame”. You can see this frames example at [this link](http://www.matt-rix.com/School/Frames/main.htm). It was just an exercise for school.

-EG

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 5:05pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/8 "2004-07-21T17:05:42Z")

</div>

Aha, I get it now. 😃 I got confused cause I looked at the code in dreamweaver and it didnt show the framesetcode. Just the framecode. So I just open the frameset in wordpad. Thank you so much! 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 21, 2004, 5:10pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/9 "2004-07-21T17:10:37Z")

</div>

> [@TobbeBobbe](#):
>
> Hmm, defined in the frameset. Every frame got its one .htm and a name before that. so like “myframe.htm” is that what you mean? Oo thanks for the help.

Or here something with an inlineframe:

```auto

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>YOUR SITE</title>
	</head>

	<body bgcolor="#ffffff">
		<table width="60" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr height="100">
				<td align="center" height="100"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="120" width="790">
						<param name="wmode" value="transparent">
						<param name="movie" value="nav.swf">
						<param name="scale" value="exactfit">
						<param name="quality" value="best">
						<param name="play" value="true">
						<embed height="120" pluginspage="http://www.macromedia.com/go/getflashplayer" src="nav.swf" type="application/x-shockwave-flash" width="790" quality="best" play="true" scale="exactfit" wmode="transparent"> 
					</object></td>
			</tr>
			<tr>
				<td>
					<iframe id="yourframe" name="yourframe" src="home.html" frameborder="0" width=790 height=400 scrolling=auto align=left hspace=25></iframe>
					 </td>
			</tr>
		</table>
		<p></p>
	</body>

</html>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2004, 10:08pm UTC](https://forum.kirupa.com/t/load-url-into-a-htmlframe/58326/10 "2004-08-17T22:08:17Z")

</div>

Hi pacno, nice website man. I got a question for u coz i’m just starting using flash mx 2004. Did you made your entire website using flash? or did u used some extra software like dreamweaver or forntpage?  
I asked it, coz right now i just start building my website but i wish to build it using only flash. If u have some advice about it, i’ll really appreciate it.  
Bye!
