Hello,
I have a main.html with hyperlinks, IFrameand “onload function” in it.
The hyperlinks and the onload function, are working as described:
When “onload” or onClick (on the hyperLink) event occured, a javascript
functions is called – it switches the Iframe src (each event has different src)
and make submit():
The code:
document.forms[0].action = switchToFileName ;
document.forms[0].submit();
My problem is:
After I am switching the first time – to one of the sources of the hyperlinks (after the file was onload ones), the onload function is been called again –
and call the src of the onload functions.
Why its happens? Why it returns to load the orginal page?
More details:
1.My onload code:
<body onload=”init(‘<%=System.currentTimeMillis()%>’);”>
<form name=”hndlr” action=”” method=”post” target=”_HNDLR”>
2. The Iframe code:
<iframe id=”_HNDLR” name=”
Tnx