Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How to output the link generated by a script ?

Hello everyone, I hope you all are doing well. I have an issue and i hope you can help me. I want to output a link which is generated by a script but i don't know how. Can you please help me with this ? Thank you

Hi Argzon,

Can you provide more details including some code samples? There's not enough to go on here.

See the following for how to format code correctly: https://teamtreehouse.com/forum/posting-code-to-the-forum

1 Answer

Alright! I will explain a little bit more since i guess is not so clear what i'm actually asking.

The script below generates a link , but it changes after a page refresh, i guess you understand. I want to output the link which is generated by this script. How can i do that ?

<div id="SC_TBlock_258431" class="SC_TBlock">loading...</div> 
<script type="text/javascript">var SC_CId = "258431",SC_Domain="****.com";SC_Start_258431=(new Date).getTime();</script>
<script type="text/javascript" src="//***.com/js/adv_out.js"></script>

I'm still unclear. Where do you want to output the link? Where is the link being generated? You have 3 variables in the one script and you're loading another script which I don't know what that one does.