# Finding out what URL is used in javascript function

**URL:** <https://forum.kirupa.com/t/finding-out-what-url-is-used-in-javascript-function/324377>\
**Category:** web dev\
**Created:** [August 17, 2011, 4:46pm UTC](https://forum.kirupa.com/t/finding-out-what-url-is-used-in-javascript-function/324377 "2011-08-17T16:46:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [August 17, 2011, 4:46pm UTC](https://forum.kirupa.com/t/finding-out-what-url-is-used-in-javascript-function/324377/1 "2011-08-17T16:46:01Z")

</div>

I’m trying to find out what the actual link is to a news story on a client website.  
That way we can link to it from an email blast.

Anyhow, this is an example of the link in the source code

```auto
<A HREF='javascript:setHiddenFormValue(document.form.articleType,"personal"); 
	linksSubmit(document.form, document.form.articleNumber,9750);' onMouseOver='window.status="Click here to see complete article contents";return true'>more...</A>

```

Then there are the javascript functions

```auto
/ ********************************************************
* Prepares all information to click on the link and *
* go to viewArticle.cfm. *
********************************************************* /
function linksSubmit(formName, elementName, elementValue)
{
	setHiddenFormValue(elementName, elementValue);
	submitForm(formName);
}

/ ********************************************************
* Sets the value (passed as a param) of a *
* hidden form element (passed as a param) *
********************************************************* /
function setHiddenFormValue(elementName, elementValue)
{
	elementName.value = elementValue
}

/ ********************************************************
* Submits a form (passed as a param) *
********************************************************* /
function submitForm(formName)
{
	formName.submit();
} // submitForm

```

I have no idea how i could get to the same page with a url string. Is it even possible?
