set attribute
createLink method
All links being created using same function