Iframe visible in page source

109 Views Asked by At

I have such code :

<iframe id="document_viewer" src="<TMPL_VAR docviewer_url>"></iframe>

The variable is PHP URL with pdf converted to text and embed in perl generated HTML using that iframe.

For SEO reasons i need to make it visible in page source , like it would regular text. Help will be truly appreciated.

1

There are 1 best solutions below

1
On

something like this:

<script>
$('#buttonID').click(function(){
var value  = $('#document_viewer').contents().find('body').html();
$("#divID").load(value); 
});
</script>