Hi guys,
im attempting to build a querystring to use in a window.open to display
a popup box.
Unfortunately im quite new to javascript and find it quite difficult to
get this functioning correctly.
Would someone please have a look and point out any of my glaring
mistakes. im a bit stuck.
Thanks in advance
function PrevAddress()
{
var txtAD;
txtAd = document.getElementById('txt_TimeAtAddress');
if ((txtAd.value=='1')||(txtAd.value=='2')||(txtAd.va lue=='3'))
{
window.open('frm_PreviousAddress.aspx?PreviousSurn ame='+
document.getElementById('txt_PreviousSurname').val ue +
'&PreviousHouseName='+
document.getElementById('txt_PreviousHouseName').v alue +
'&PreviousHouseNumber='+
document.getElementById('txt_PreviousHouseNumber') .value +
'&PreviousStreetName='+
document.getElementById('txt_PreviousStreetName'). value +
'&PreviousTownLand='+
document.getElementById('txt_PreviousTownland').va lue +
'&PreviousTown='+ document.getElementById('txt_PreviousPostTown').va lue
+ '&PreviousPostCode='+
document.getElementByID'txt_PreviousPostcode').val ue ,'', 'width=600',
'height=400', 'top=100', 'left=200', 'menubar=no',
'resizable=no');
}
}
Regards
CG