I am trying to insert numbers from a form into two different URLs,
and then launch both with a single click.
My problem is getting the numbers to insert correctly.
Below is what I have attempted.
+'document.myurl.book.value'
Can anyone help me with this?
http://www.biblegateway.com/passage/?book_id=2&chapter=7&version=9
_____________________________________________________
<form name="myurl">
<input type="text" name="book" value="2">
<input type="text" name="chapter" value="7">
</form>
<a href="#" onclick="
parent.frame1.location.href='http://www.biblegateway.com/passage/?book_id=+'document.myurl.book.value'&chapter=+'document.myurl.chapter.value'&version=9';
parent.frame2.location.href='http://www.biblegateway.com/passage/?book_id=+'document.myurl.book.value'&chapter=+'document.myurl.chapter.value'&version=8';">My Url</a>
<br><br>
<iframe name="frame1" height=300 width=800 src=""></iframe>
<br><br>
<iframe name="frame2" height=300 width=800 src=""></iframe>