html - Use <a> in iframe (1) to load page into iframe (2) -


i setting iframe styled page. have iframes each piece of page (header, menu, sidebar, content, etc).

my menu iframe had links in it;

<ul id="workmenuitems" style="display:none">     <li><a target="contentframe" href="work/courier.php" id="hrefcourier">courier</a></li>     <li><a target="contentframe" href="work/scout.php" id="hrefscout">scout</a></li>     <li><a target="contentframe" href="work/hunt.php" id="hrefhunt">bounty hunt</a></li>     <li><a onclick="back()" href="javascript:void(0)" id="back">back</a></li> </ul> 

when click on of these (courier example) opens new tab instead of loading .php contentframe. checked spelling , matches.

also - using chrome - not sure if that's known issue off hand.

thanks!

as shot in dark, added name element iframe , worked. id="" apparently isn't enough on one. looked!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -