Closed
Bug 228640
Opened 21 years ago
Closed 21 years ago
Javascript onload or window.open() not working
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: fabio.paoli, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
The page with the following code does not open. It stops instead of opening the
new URL.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Tabela de rentabilidade</title>
<script language="Javascript">
function rentabilidade()
{
var rota =
"http://ww14.itau.com.br/personnaliteinvestnet/rentabilidade/framesetrentabinv.asp";
window.open(rota, "_self");
}
</script>
</head>
<body onload="rentabilidade()">
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Open the web page
http://ww14.itau.com.br/acessos/itau/bankline/personnalite/tabrentab_cons.htm
Actual Results:
Nothing
Expected Results:
It should have jumped to
http://ww14.itau.com.br/personnaliteinvestnet/rentabilidade/framesetrentabinv.asp .
Comment 1•21 years ago
|
||
this is probably getting blocked by the popup blocking code (since you're
calling an unrequested window.open() event) I can't test now, but that's what
I expect is happening. Try disabling popup blocking for this site (you're
probably getting an icon in the bottom corner) to confirm this.
Using window.open for a redirect is going to break on popup blockers.
document.location.href works much better cross-browser.
Mike, you were right! The little blue i appears. Sorry for this "false alarm".
I didn't suspect popup blocking because the site this comes from is
www.itau.com.br which is unblocked, however this particular page was comming
from ww14.itau.com.br, and Firebird had no way of guessing it was the same as
www.itau.com.br. I unblocked ww14 now, and things should work fine.
Thanks! I am marking the bug as invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•