How can I set the URL property of a "Link"-object with javascript?
The name of my object is "mobilelinkWebsiteResult".
How can I set the URL property of a "Link"-object with javascript?
The name of my object is "mobilelinkWebsiteResult".
Hello,
You can set the URL property of a Link object using following JavaScript code:
codeTiggzi("mobilelinkWebsiteResult").attr("src", "http://...");/code
I tried this, but when I click on the link nothing is gonna happen:
Tiggzi('mobilelink4').attr('src', 'http://www.tiggzi.com');
Is there anything else I should add?
Hello! Please check if you are using correct object name
I checked and copied the object name from the property window. No changes.
I could solve the problem by using a local storage variable which I attached to the link properties.
Anyway, I would like to figure out what's the reason.
Try Tiggzi('mobilelink4').attr('href', 'http://www.tiggzi.com');
Now it works.
Thanks. You're always a great help