How to open javascript or jquery popup to display target url in same page either using jquery or javascript can anyone please provide me with a link i have searched on google but was unable to found a valuable thing
Here's some markup..
<a href="http://www.somesite.com"> Some Site Link </a>
<div id="popup"> This is the popup text pre $.load() </div>
Here's some code...
$('#popup').dialog({
autoOpen: false,
modal: true
});
$('a').on('click', function(e){
e.preventDefault();
$('#popup').load($(this).prop('href'), function(){
$('#popup').dialog('open');
});
});
Just use following things
<script>
$("#target").load("your link");
</script>
lets say you already make the popup appear on click of a link or a button so call a function on onClick event and pass the target url as a parameter. the in that function you can use alert like
alert(url);
and then use window.location = url;
to redirect the page.
I have implemented highslide js and it is working fine... Thanks fellows