Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Framesets, iFrames and Z-Index

Framesets, iFrames and Z-Index

Framesets, iFrames and Z-Index

Currently I have a webpage that consists of an index.html file. In the index.html there is a framset



<frameset rows="9%,75%">
  <frame src="header.html" frameborder="0" scrolling="no">
  <frame src="body.html" frameborder="0">

In the header.html frame src, there is an iframe listed on it. The iframe pulls a search.html file. I currently have an autocomplete script on that search.html page.



function open_win()

		<table align="left" border="0" height="50">
					<td valign="middle" width="130">
						<a class="button" href="timer.html" onclick="javascript:void window.open ('timer.html','1379021975963','width=412,height=400,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,left=700,top=355');return false;">Timer</a></td>
<table align="left" border="0" height="30">
					<td width="350"><center>
<iframe src="marquee.html" name="marquee" width="350" height="40" frameborder="no" scrolling="no"></iframe>
<table align="left" border="0" height="200">
	<td valign="top">
<iframe src="search.html" width="325" height="200" frameborder="no" scrolling="no"></iframe>

Now what's happening is that when someone types in the search box, the autocomplete works, but only inside it's frameset. Is it possible to get the drop down from the autocomplete to go over both framesets with a z-index or something?


RE: Framesets, iFrames and Z-Index

Iframes were traditionally for including information from other websites.

Your code would be far simpler to manage if you put it all in a single page and removed the frameset


RE: Framesets, iFrames and Z-Index

Yeah I'm currently working with it that way now, but need to have certain information always displayed at the top while the rest of the page can scroll which is why I had the frameset. Right now it's all on the same page and it works, but there are collapsible divs on the page and when they are expanded, they push the elements I want displayed at the top at all times off the page.


RE: Framesets, iFrames and Z-Index


but need to have certain information always displayed at the top while the rest of the page can scroll

That is what position: fixed is used for, NOT frames or iframes.


Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close