javascript - window.open() is not Working when Passing variable in JSP -


i getting stuck on project last 2 days. using window.open() in jsp button type input. as:-

html

     <td colspan="2" align="right"><input type="button" value="report" id="btn1"       onclick="window.open('<%= url %>')"></td>   

but when pass string @ place of url in window.open works fine.

javascript:

    onclick="window.open('<%= "http://www.google.com" %>')" 

please me, in advance

there no problem code. hope have initialized url before . may variable url empty.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -