Closed Bug 4148 Opened 26 years ago Closed 25 years ago

Redirect with window.location does not redirect the page.

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: don)

Details

Redirect with window.location does not redirect the page. Providing information to simulate the problem. Product: Seamonkey.[apprunner] Build Date: 03/17/99 Platform: PC [Windows-95] Steps to Reproduce: 1] Please copy the code I'm providing. Save as HTML file. 2] Open this HTML file in apprunner. 3] Check whether page redirects to you to another site which is http://home.netscape.com/ Code: <html> <head> <title>Test Page</title> </head> <SCRIPT LANGUAGE="JavaScript1.1"> function init(){ if (navigator.appName == "Netscape") { window.location.href="http://home.netscape.com/" }else{ window.location.href="http://www.microsoft.com" } } </SCRIPT> <body onLoad="init()"> <FORM NAME="workform" > </form> </body> </html> Expected Results: Page should be redirected to http://home.netscape.com/ Actual Results: Does not redirect.
Assignee: vidur → desale
Works for me in the viewer. If there's a problem it's at the apprunner end. Prashant, please confirm that this works in the viewer. If so, please reassign this to the apprunner owner - they're blocking a LoadURL.
Assignee: desale → don
vidur It works fine for Viewer, It just does not work for apprunner. So reassigning to apprunner owner.
Priority: P3 → P2
Target Milestone: M5
Set target milestone to M5.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Resolved as FIXED. Works now. I'd love to take credit for the fix, but ...
Status: RESOLVED → VERIFIED
Verified. Everything is working perfectly fine.
You need to log in before you can comment on or make changes to this bug.