2011-07-31 46 views

回答

2

在Chrome中,事件的工作,但你看到的,因爲錯誤的虛無

Uncaught TypeError: Object [object DOMWindow] has no method 'getBrowser'

扔在第38行:

document.getElementById('txtarea').innerHTML = ("<b>" + tagline + "</b>" + "</br >" + "<br />" + "<i>" + "<u>" + author + " " + date + "." + "</u> " + author + " (" + credentials + ") " + date + " " + publication + " " + title + " " + (window.top.getBrowser().selectedBrowser.contentWindow.location.href) + "</i>" + "<br />" + "<br />" + evidence);

+1

而只是跟進,如果你改變該行'的document.getElementById( 'txtarea')。innerHTML的=(」 「+標語+」 「+」
「+」
「+」 「+」 「+ author +」「+ date +」。「+」「+ author +」(「+ credentials +」)「+ date +」「+ publication +」「+ title +」「+(window.location.href )+「」+「
」+「
」+ evidence);',它看起來像你在做生意 - http://jsfiddle.net/bdjVd/6/ –

+0

謝謝,這是有道理的。 –

2

在Firefox中,你format()功能被扔錯誤Permission denied to access property 'getBrowser'

+0

謝謝,這是有道理的。 –