我有一个iFrame,其内容在另一个iFrame中.我想获得内部iFrame的src
内容.我怎么能用javascript做到这一点?
我接手了一个涉及大量javascript(AJAX和诸如此类的东西)的项目.在追踪功能时,有没有办法找出哪个包含.js
文件包含特定功能?
我正在寻找Firebug,但无法找到它隔离包含javascript函数的特定文件的位置.我错过了什么?
有愚蠢的问题.
在这里,我有三个事件调用相同的函数,连接到相同的<div>
:
<html>
<head>
<script type='text/javascript'>
function universal_action_handler( event ) {
var eType = event.type;
var eTarget = event.target || event.srcElement;
console.log( "Captured Event, type=", eType, ", target=", eTarget );
if( 'mouseover' == eType ) {
console.info( "onMouseOver: set background color to red." );
eTarget.style.backgroundColor = 'red';
eTarget.style.fontSize = '';
}
if( 'mouseout' == eType ) {
console.info( "onMouseOut: set background color to transparent." );
eTarget.style.backgroundColor = 'transparent';
eTarget.style.fontSize = '';
}
if( 'click' == eType ) { …
Run Code Online (Sandbox Code Playgroud)