Am running simple jquery code for opening the popup window in visual studio.Instead of opening in the new window it is navigating and wirking like hyperlinks.I dont know where am going wrong.my code is;
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" >
$(document).ready(function (){
$('.examp').popupWindow({
height:500,
width:800,
top:50,
left:50
});
});
</script>
<a href ="http://google.com" title="google.com" class ="examp">open</a>
this is really a simple problem but i cant found where am going wrong..
I’ts most probably because you’re not running popupWindow function inside document.ready. Try this: