Update onURL to avour referencing srcElement

Instead of referring to srcElement, getting value via DOM lookup