Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading iframe id in javascript

3174772Apr 27 2016 — edited Apr 28 2016

Hi experts,

I am using jdeveloper 12.2.1 version.. i am writing a javascript function in .js file,, where i am reading iframe id:

var path = protocol+ "://" + host + "/" + pathname + "?" + param ;

document.getElementById('if1').src = path;

But my iframe is in the corresponding html page:

<iframe src="" style="height:600px;width:800px;border:none" id="if1"></iframe>

Now its not able to recognize the 'if1'.. i cant write the script function in the same html.. and i cant add iframe into js.

Can anyone give me any solution !!

Regards

Chinmayee

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2016
Added on Apr 27 2016
8 comments
469 views