Closed Bug 260758 Opened 21 years ago Closed 21 years ago

[Exception... "Component returned failure code: 0x804b000a [nsIDOMJSWindow.open] on window.open from a dynamically created link <a>

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 253735

People

(Reporter: ericdt, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 Within the onclick of a link created with javascript/DOM a call to window.open fail. Work on IE. Reproducible: Always Steps to Reproduce: 1. Create a simple html page with a <table> 2. Dynamically create a link newRow = {some tr} var newCell = newRow.insertCell(j); newCell.innerHTML = "<a href=\"#\" onclick=\"ShowWidow('foo.html', '_blank')\">" 3. do window.open in link OnClick code window.open('foo.html', '_blank'); Actual Results: Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000a [nsIDOMJSWindow.open]" nsresult: "0x804b000a (<unknown>)" location: "JS frame :: http://localhost/kronosweb/js/popup.js :: ShowWindow :: line 25" data: no] Expected Results: Popup a window
*** This bug has been marked as a duplicate of 253735 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Component: JavaScript Engine → DOM: Level 0
I also observe this problem with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
You need to log in before you can comment on or make changes to this bug.