how to make var newtext2 a hyperlink?
the hyperlink is a php variable.

I've only included this line of code.

var newtext2 = obj( "reply" ).value;

h

You can set dynamic javascript code using php variable using following code.

<script lang='javascript'>
 window.location='page<?php echo $var?>.php';
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.