Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Possible to break out?

iframes, drop down list



2:57 pm on May 10, 2003 (gmt 0)

Inactive Member
Account Expired


I have a site with iframes that has a drop down list in it (to photo pages). I have 1 item that belongs on the drop down list because of the category (it doesn't belong in the table list), but I want it to break this link ONLY out of the iframe and either go directly to that site or open a new window to that site. Is this possible?
3:11 pm on May 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
votes: 0

Welcome to WebmasterWorld MsGini,

Sure you can. It will take just a little bit of Javascript. You can use this to make a new window:

function breakIframe(){
var targetURL = formName.selectName.options[formName.selectName.selectedIndex].value;
window.open(targetURL, 'categoryWindow', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=400,height=300');

You can have a select something like this:

<form name="formName">
<select name="selectName" onChange="breakIframe()">
<option value="http://www.yahoo.com">yahoo</option>
<option value="http://www.google.com">google</option>


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members