AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > JavaScript

js改变Iframe中Src的方法

51自学网 http://www.wanshiok.com
js,Iframe,Src

本文实例讲述了js改变Iframe中Src的方法。分享给大家供大家参考。具体实现方法如下:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title></title><meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><script type="text/javascript">function test(Url){document.frames[0].location.href =Url; }</script></head><body><iframe id="xx" src=""></iframe><a onclick="test('top.html')" href="#">linkbutton</a></body></html>

希望本文所述对大家的javascript程序设计有所帮助。


js,Iframe,Src  
上一篇:JS根据生日算年龄的方法  下一篇:js网页滚动条滚动事件实例分析