Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js " type="text/javascript"></script>
</head>
<body>
<a href="/Questions/249/how-create-my-own-attribute-using-jquery-/249" data-width="600" data-hight="400" class="popup">File</a>
<script>
$(document).ready(function () {
function(){
$(".popup").click(function(event){
event.preventDefault();
var href = $(this).attr("href");
var width = $(this).attr("data-width");
var height = $(this).attr("data-height");
var popup = window.open(href, "popup", "height=" + height + ",width=" + width + "");
});
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K