使用框架在html页面之间传递值 [英] passing values between html pages using frames

查看:118
本文介绍了使用框架在html页面之间传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

作为标题ggoes,我想在同一帧中传递值btn html页面。

我有两个框架集,顶部frmeset和底部设置,在底部框架集中有三个框架,frame1,frame2,frame3。

i希望通过使用frame2中的按钮在frame3中加载不同的页面。并且一旦基于单选按钮选择加载了frame3,我想在同一帧中加载另一个页面,即frame3,并将单选按钮的值传递给该新加载页面中的文本框。


请有人帮助我

提前感谢

hello there,
as the title ggoes, i want to pass values btn html pages in the same frame.
i''ve two framesets, top frmeset and bottom set, in the bottom frameset there are three frames, frame1,frame2 ,frame3.
i want to load different page in frame3 by using buttons in frame2. and once frame3 is loaded based on the radio button selection i want to load another page in the same frame i.e. frame3 and pass the value of radio button to a textbox in that newly loaded page.

please some one help me
thanks in advance

推荐答案

发布您的代码,或者更好的是,指向测试页面的链接。另请阅读此文章
Post your code or, better still, a link to a test page. Also have a read of this article.


感谢您的回复


代码如下:

Thanks for the reply

the code goes as follows

展开 | 选择 | 换行 | 行号


由于您正在更改当前页面的位置,因此其余代码将无法执行。您正在传递URL中的值,因此请使用新页面page2.html中的location.search属性。您可以设置文本框值onload。
Since you''re changing the location of the current page, the rest of the code won''t execute. You are passing the value in the URL, so use the location.search property in the new page, page2.html. You can set the textbox value onload.


这篇关于使用框架在html页面之间传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆