By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Netscape not support the following javascript

P: n/a
Hi,

The following code not works in netscape 7.2,

function WizardMoveNext () {

CurrentStep++;
WizardPage = "regreqstep" + CurrentStep + ".php";
alert ("Current Wizard Page " + WizardPage);
document.getElementById("frSubTab").src = WizardPage;
}

frSubTab is iFrame in the page.
Please fix it

with regards
Balaji
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Balaji. M. wrote:

The following code not works in netscape 7.2,
function WizardMoveNext () {

CurrentStep++;
WizardPage = "regreqstep" + CurrentStep + ".php";
alert ("Current Wizard Page " + WizardPage);
document.getElementById("frSubTab").src = WizardPage;
}

frSubTab is iFrame in the page.


The code is only a function, where/how do you call it?

Is there an
<iframe id="frSubTab" ...></iframe>
in the page when the function is being called?

Do you get any error messages in the JavaScript console?

In general if you want to change the document in an iframe use
<iframe name="iframeName" ...></iframe>
and then
if (window.frames.iframeName) {
window.frames.iframeName.location.href = 'newpage.html';
}
that works in a lot of more browsers than manipulating the src property
of the <iframe> element.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.