plz tell me that how to open this ads function using a button in new window.

Code:

function ads()
{
<script type="text/javascript"><!--
google_ad_client = "pub-6044026340890176";
/* 468x60, created 3/17/08 */
google_ad_slot = "3105157606";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="(URL address blocked: See forum rules)">
</script>
}

<input type="button" value="Show Me" onClick="ads()" > I DON'T WANNA PUBLISH ADS ON NEW PAGE,I WANT CLICK ON AD WITH BUTTON...PLZ HELP

plz mail me the solution : <EMAIL SNIPPED>

For the future JSP stands for Java Server Pages. Post moved to JavaScript section

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.