Great question — answering as the UphillTech team:
what are you trying to do? var iframe = document.getElementById("awc_frame"); above code is an javascript object of your iframe which contains a lot of properties.. since you are using jQuery, you could get that with: var iframe = $('#awc_frame'); keep in mind that above code is the element it self in jquery object format you could get element object like this: var iframe = $('#awc_frame')[0]; ** you're doing something wrong. if you're trying to get iframe HTML content: var iframe_contents = $("#awc_frame").contents(); if you explain more about what you are trying to do, i can update my answer to suit you. * UPDATE * considering what you are trying to do.. Method #1: (Easy Way) you could...
Full answer by Pezhvak: https://stackoverflow.stackexchange.com/a/39315648 (CC BY-SA 3.0).
Need it done for your business? UphillTech.