Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:17

iframe targeting, can't get it to work


Poster: undertow
Dated: Wednesday November 13 2002 - 21:02:33 GMT

I'm having trouble getting my menu links to open in my iframe. I'm using IE6.

My iframe code:
<iframe id="main" name="main" src="pcx_main.htm" width="100%" height="100%" frameborder="0"></iframe>

My menu's target code:
,"Restaurants Downtown","../restaurants.htm target=main",,"",0

The link opens in a new window instead.

Here's the site: http://pcx.radicalteacher.com/Brian/

Thanks,
Brian


Poster: Joost
Dated: Wednesday November 13 2002 - 21:14:33 GMT

This should be the menu's target code: ,"Restaurants Downtown", "javascript:openIFrame(\"main\", \"restaurants.htm\")",,,0

Plus put this script on your page(s):

<script language=javascript>

function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}

</script>

That will work !

Greetz,
Joost