Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

iframe problem

Featured Replies

ok, i have a HTML page with a normal menu of buttons which are linked to an iframe, when a button is clicked the page is displayed in the iframe. It all works perfectly, flicking through pages BUT when you use the browser back button THEN click a link it opens in a new window rather than the iframe.

heres the code im using...

 

<iframe scrolling="auto" width="792" height ="469" src="home.swf" FRAMEBORDER="0" id="frame1" name="frame1">
		  </iframe>

 

<td width="144" height="435" rowspan="2" valign="top" bgcolor="#000000"><p align="right"><a href="weld_trial.htm" target="frame1"><img src="images/advert.gif" width="141" height="130" border="0"></a><a href="home.swf" target="frame1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','buttons/button_home_down.gif',1)"><img src="buttons/button_home_up.gif" name="Image14" width="140" height="39" border="0" align="top"><br>
	  </a><a href="special_offers.htm" target="frame1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','buttons/button_offers_down.gif',1)"><img src="buttons/button_offers_up.gif" name="Image12" width="140" height="35" border="0">

 

 

 

any ideas? thanks in advance

  • Author

ideally i wanted to use an iframe so theat the ad banner doesn't restart itself on every page.

the site can be found here: FernEng.com

It is normal practice to have a banner ad restart/refresh it's self on every page. What if you have more than one banner? Then you would need to force the banner to change at some point. Look at any website with banners on and you will see that every page reloads the banner or pulls in a new one.

 

A couple of things to note:

 

Learn how to use divs to build your site not tables.

Why are you using frames?

Use an external style sheet.

Your pointing to background images on a 'C' drive. This will not work as I don't have the image on my 'C' drive. You need the path to the image on your server.

 

I'm not sure how to fix your problem with the iframe as I haven't had the pleasure ;) of using them for a while. What I would say though is if you built the site without using frames then the problem wouldn't exist.

  • Author

i will probably do that then, i just quite liked the idea of not refreshing the menu/background everytime a new page is loaded.

 

which image is pointing at the c: drive?

This is the image that is pointing to the C drive -

 

<table border="0" cellspacing="0" cellpadding="0" width="100%" height="21" background="file:///C|/Documents%20and%20Settings/All%20Users/Documents/150DreamweaverTemplates/corporate06/corporate06/images/bkgrnnav_pattern.jpg">

 

It's the 8th line down from the header.

 

I would personally concentrate on using divs for the layout and loosing the frames instead of worrying about the iframe issue.

 

But I'm sure there will be someone on here that will know more about iframes than me.

  • Author

all sorted, ive converted it all to individual pages

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.