Open a new window on click and new tab on right click of a home page layout link.
I managed to open a new window with following syntax.
window.open(url, mywindowName, height="200", width="400");
But I am finding difficult in opening a new tab because when i right click I didnot find the open new window activce in popup.
Any help or Ideas are appriciated.
Best Answer
I solved this. {!REQUIRESCRIPT("/resource/jqueryResources/jquery.js")} {!REQUIRESCRIPT("/resource/jqueryResources/jquery-ui.js")}
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('a').mousedown(function(event) {
if(event.which == 1){ window.open("URL","ITQ Email List",height="800", width="600"); } if(event.which == 3){ window.open("URL", target="_blank"); } })
});