search
HomeWeb Front-endHTML Tutorial怎么让iframe嵌套frameset框架,点击导航栏中超链接,浏览器url改变??_html/css_WEB-ITnose

我是用iframe,frameset来开发网站的,整个网站差不多要完工了,刚刚测试一下,结果发现我点击导航栏中的超链接,浏览器中的url地址总是不改变,但是网页中的内容改变了,请问有哪位大侠知道怎么解决这个问题,帮帮忙!!在线等。。。


回复讨论(解决方案)

iframe是内嵌的。相当于是页面中的一个元素,总的页面地址本来就是不变的吧。

iframe是内嵌的。相当于是页面中的一个元素,总的页面地址本来就是不变的吧。
我刚开始也是这么想的,但是我老大说要能看到url地址改变,我也是第一次遇到这个问题。。

恩...我编辑网站也是这样的
要想看到url 地址变化只有你重新建页面了.
恩,真的没办法.
本来就是,你ifame就是内嵌的 ,是在一个页面内嵌一个页面的一部分.
哦....对了,有种方法...看到这个网站,我一个编程的,点击看源代码.
http://www.jsbgjj.com/myweb/index.html
有什么启发了没...
就是调用..
懂了.、
还不懂加我qq,就1010这个


这个思路你可以尝试一下:
可以尝试改变一下javascript中DOM编程下的window对象下的Location中的值(即你需要跳转的页面的url);

………………

为什么吃饭会饱,楼主能解决这个问题么……

这个思路你可以尝试一下:
可以尝试改变一下javascript中DOM编程下的window对象下的Location中的值(即你需要跳转的页面的url);

我试了,实现不了!

IFRAME里用top对象试试
top.title=".............."

           jsp换成你自己的 
把框架换成这样的引用就好了,我就是这样实现的,因为我不会用框架。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the root tag in an HTML document?What is the root tag in an HTML document?Apr 29, 2025 am 12:10 AM

TheroottaginanHTMLdocumentis.Itservesasthetop-levelelementthatencapsulatesallothercontent,ensuringproperdocumentstructureandbrowserparsing.

Are the HTML tags and elements the same thing?Are the HTML tags and elements the same thing?Apr 28, 2025 pm 05:44 PM

The article explains that HTML tags are syntax markers used to define elements, while elements are complete units including tags and content. They work together to structure webpages.Character count: 159

What is the significance of <head> and <body> tag in HTML?What is the significance of <head> and <body> tag in HTML?Apr 28, 2025 pm 05:43 PM

The article discusses the roles of <head> and <body> tags in HTML, their impact on user experience, and SEO implications. Proper structuring enhances website functionality and search engine optimization.

What is the difference between <strong>, <b> tags and <em>, <i> tags?What is the difference between <strong>, <b> tags and <em>, <i> tags?Apr 28, 2025 pm 05:42 PM

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

Please explain how to indicate the character set being used by a document in HTML?Please explain how to indicate the character set being used by a document in HTML?Apr 28, 2025 pm 05:41 PM

Article discusses specifying character encoding in HTML, focusing on UTF-8. Main issue: ensuring correct display of text, preventing garbled characters, and enhancing SEO and accessibility.

What are the various formatting tags in HTML?What are the various formatting tags in HTML?Apr 28, 2025 pm 05:39 PM

The article discusses various HTML formatting tags used for structuring and styling web content, emphasizing their effects on text appearance and the importance of semantic tags for accessibility and SEO.

What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?Apr 28, 2025 pm 05:39 PM

The article discusses the differences between HTML's 'id' and 'class' attributes, focusing on their uniqueness, purpose, CSS syntax, and specificity. It explains how their use impacts webpage styling and functionality, and provides best practices for

What is the 'class' attribute in HTML?What is the 'class' attribute in HTML?Apr 28, 2025 pm 05:37 PM

The article explains the HTML 'class' attribute's role in grouping elements for styling and JavaScript manipulation, contrasting it with the unique 'id' attribute.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools