Hello, I am trying to access a dynamic asp variable with onclick either in a javascript function where I can use it globally or set another div id with this dynamic variable.

Any help is very much appreciated. Thank you!

function doSomething(article_id)
return article_id;


<a href="#test" onClick="doSomething("<%=rsHeadline("article_id")%>")">try here...</a>

<div id="test">
<%articleid = request.querystring("article_id") %>
<% Response.Write article_id %>
The article id is article_id</div>