function attrIfarmeSrc(url) {
$("#ifarme").attr("src",url);
$("#ifarme").attr("src",url);
}
<a href="Javascript:attrIfarmeSrc('pages/list.html')">
}
<a href="Javascript:attrIfarmeSrc('pages/list.html')">