ali_esprit
جمعه 02 تیر 1391, 19:54 عصر
مي خواستم بدونم آيا راهي هست كه بشه لينك هايي كه درون يك فريم هستند در يك پنجره جديد باز بشن؟
لينكها در اختيار من نيستن و از يك سايت ديگه هستند و نميشه از ترگت استفاده كرد.
اينو از يه سايت خارجي پيدا كردم ولي متوجه نشدم چي ميگه!
Does the a tag have any kind of class or id on it, if yes then you can use jQuery:
// if has an id
$("#atagid").attr("target","_blank");
// if more than one with a class
$(".atagclass").each(function() {
$(this).attr("target","_blank");
}); Although not sure if it will change a tags within the iFrame until you test it.
لينكها در اختيار من نيستن و از يك سايت ديگه هستند و نميشه از ترگت استفاده كرد.
اينو از يه سايت خارجي پيدا كردم ولي متوجه نشدم چي ميگه!
Does the a tag have any kind of class or id on it, if yes then you can use jQuery:
// if has an id
$("#atagid").attr("target","_blank");
// if more than one with a class
$(".atagclass").each(function() {
$(this).attr("target","_blank");
}); Although not sure if it will change a tags within the iFrame until you test it.