Jump to content

need to view javascript output to copy resulting source code


detox

Recommended Posts

I need to view the outputed html of the javascript tags

but all i ever see is the script tags again, never the actual source.

 

I received a javascript snippit code from an affiliate site.

i cannot paste javascript into my webpage, because the tags get stripped

so i would like to be able to paste the script into some kind of editor that displays the output thank you

Link to comment
Share on other sites

Without knowing how the javascript is outputting the HTML there is no way to help you. The JS is probably writing the HTML to the page using a document.write, changing the value of an objects innerHTML parameter or soemthign else. If you need to get the HTML output you are going to need to build a custom solution to do so.

Link to comment
Share on other sites

get any number of a million live dom inspectors out there (for instance, firebug).  They will allow you to see what is actually rendered that the viewer sees.  Then just c/p it and hardcode it wherever.

 

fyi this may or may not work out for you... have no idea what this "affiliate script" is or what it's supposed to do but it's probably dynamically generated content for a reason...  example..banner ad script? Not gonna dynamically generate no more, and good possibility you won't get credit for the impression/click!

 

I suggest you contact this "affiliate" and ask them if they have a noscript solution, like an image request or something.  Again,Ii have no idea what this script is for or what it's supposed to be doing so that's about where the advice ends.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.