Buttons to iFrame...

windows

Guest
I set up a table with buttons in them. How can I make a button, when clicked, show a certain page in an iFrame?<!--content-->Yo...dude! <br />
Check out the Posts in my thread "damsel in distress" should answer all your query :)<!--content-->That didn't really help me at all. Thanks though.<!--content--><td><a href=http://www.htmlforums.com/archive/index.php/"contact.html" onClick="MM_nbGroup('down','group1','contact','images/cu_roll.gif',1)" onMouseOver="MM_nbGroup('over','contact','images/cu_roll.gif','images/cu_roll.gif',1)" onMouseOut="MM_nbGroup('out')" target="iframe"><img name="contact" src=http://www.htmlforums.com/archive/index.php/"images/cu_.gif" border="0" onLoad="var SymTmpWinOpen = window.open; window.open = SymWinOpen; ; window.open = SymTmpWinOpen;" width="158" height="30"></a></td><br />
<br />
<br />
this is an example of what I have on my button with this code...<br />
<br />
<TD background="images/str2.gif"> <br />
<div align="left"><iframe src=http://www.htmlforums.com/archive/index.php/"http://www.parachuteconsulting.com/parachuteblog/parablog.html" name="iframe" width="100%" height="100%" frameborder="0" align="center"></iframe> <br />
</div><br />
</TD><br />
<br />
<br />
In the table that the button is directing the blog too<br />
<br />
<br />
does that help?<br />
;)<!--content-->I have a page with an iFrame and a button(s) on it.<br />
<br />
<input type="button" name="B1" value="TEXT"><br />
<br />
I want to have it open up a page in an iFrame on the same page when it is clicked. I know I have to use onclick, but how?<br />
<br />
<br />
Also, since I have a thread about buttons, can I use HTML to play a sound when one is clicked?<!--content-->Try this:<br />
<a target="_self" href=http://www.htmlforums.com/archive/index.php/"home.html"><button name="B3">Text</button></p><br />
^_~<!--content-->Still doesn't work. By the way, if it will help, I am using FrontPage and I used the <input type="button"> command.<!--content-->i havent used frontpage in years, ( i gave it in favor of notepad ) but if i remember correctly, it should have a source ( or HTML ) editor; go there and where your button is put, modify the following code to suite your needs:<br />
<br />
first, let's say that this is your iframe code:<br />
<br />
<iframe src=http://www.htmlforums.com/archive/index.php/"blah.html" style="margin:'0px';padding:'0px';"></iframe><br />
<br />
<br />
now modify it by adding the green attributes:<br />
<br />
<iframe name="oneOfMyIframes" src=http://www.htmlforums.com/archive/index.php/"blah.html" style="margin:'0px';padding:'0px';"></iframe><br />
<br />
<br />
and assuming that the button is on the same html page where the code for you iframe appears; change the button code to include:<br />
<br />
<input type="button" onclick="frames['oneOfMyIframes'].location='gotoThisPage.html';" value="blah and blah again"><br />
<br />
<br />
just wrote that form memory, let me know if you have probs with it :)<!--content-->It's doing something, but it comes up with "Page Not Found" or something like that. And yes, I put in the correct page name.<!--content-->Nevermind. It was just the stupid preview option in FrontPage. It works just fine. Thanks ucm!!!<!--content-->anytime :)<!--content-->
 
Back
Top