Skip to content Skip to sidebar Skip to footer

What Wrong On My Function Of Link To Open New Window?

I've tried to create link that can open new window..currently I used Function genLink(req_id) genLink = ' onclick=''location.href='order_view.asp?bill_id=' & req_id &

Solution 1:

Try: window.open("order_view.asp?......"); Refer here: http://www.w3schools.com/jsref/met_win_open.asp

Solution 2:

Try

onclick="window.open('order_view.asp?bill_id='+bill_id+'&req_id='+req_id)"

Solution 3:

window.open is a javascript function, not a property. Try

genLink = " onclick=window.open(""location.href='order_view.asp?bill_id=" & req_id & "'  "" )"

Solution 4:

Looks like too many messing "(double quotes), anyways window.open is a function, so it should be as below.. onclick="window.open('myurl')"

Post a Comment for "What Wrong On My Function Of Link To Open New Window?"