Open a new popup window on click function....

They have: 7 posts

Joined: Nov 2014

Hello friends.....
Any one help me , How can i open new window on click event.

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

For a dynamic website, I'd use this: (jQuery)

$(document).on('click', '.linkname', function() {
window.open("/path/to/page", "Page Name", "toolbar=no, scrollbars=no, resizable=no, top=200, left=450, width=350, height=50");
});

But for any other setup, the normal way would be: (jQuery)

$('.linkname').click(function() {
window.open("/path/to/page", "Page Name", "toolbar=no, scrollbars=no, resizable=no, top=200, left=450, width=350, height=50");
});

Hope this helps

ColdCast is an open social network funded by your donations. A place where you can be yourself without Big Brother breathing down your neck.https://coldcast.org

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.