A: 

same as the one you have but with the Contains selector

$("a[href*='/schedule/']").attr('target','_blank');
Jaime
For some reason I always forget about the `~=` selector... +1
David Thomas
~= will look for /schedule/ as a word delimited by spaces. so it won't work as a url with paths most likely won't have spaces
Moin Zaman
i couldn't get this to work when I tried just now...<script type="text/javascript">$(document).ready(function(){ $("a[@href~='/schedule/']").attr('target','_blank');});</script>
Evan
@Moin, you're right, the '~=' does not select the correct links, the correct one would be '*=' as you have in your answer ...
Jaime
+1  A: 

try this:

$("a[href*='/schedule/']").attr('target','_blank');

For width / height constraints you need to open a popup window (lookup window.open...) or use a modal window that can load external content into an iframe.

Moin Zaman
there was a syntax error. i adjusted that and I confirm this works here: $(document).ready(function(){ $("a[href*='/schedule/']").attr('target','_blank'); }); also, i found this plugin to manage the height and width. works like a charm! http://plugins.jquery.com/project/open
Evan
I updated the syntax in my answer too
Moin Zaman
thanks for your help Moin. you helped me sleep better last night! :)
Evan