subzero2k35
Technical User
Ok
I need to call a function outside of document.write, which is back in the main script.
i.e
<html>
<script language = "javascript">
function second(value) {
alert(value)
}
function first(value) {
document.open()
document.write('<a href="#" "
document.writeln('onClick="i_want(value)">BUTTON</a>')
document.close()
<html>
....... call function (where_i_am) with (value)
<a href="#" onClick="first(10);">BUTTON"</a>
</html>
how do i do this and rememeber value??
Thanks
Sub
I need to call a function outside of document.write, which is back in the main script.
i.e
<html>
<script language = "javascript">
function second(value) {
alert(value)
}
function first(value) {
document.open()
document.write('<a href="#" "

document.writeln('onClick="i_want(value)">BUTTON</a>')
document.close()
<html>
....... call function (where_i_am) with (value)
<a href="#" onClick="first(10);">BUTTON"</a>
</html>
how do i do this and rememeber value??
Thanks
Sub