Hi! I would like to make a whole <div> as a link. Once clicked I want it to call a javascript and perform a task depending on div's id or class.
For example I have a div class called 'external website'. When the user clicks the div class it will go to another website depending on what it was specified in the page's script file. On the other hand if I have another div class called 'pictures' I would like the website to call the JavaScript and take the visitor to a page where there are photos.
The reason why I want this is because Expression Web does not allow me to make div's editable in templates. So depending on the page the visitor arrives at it will have a div that will take him to that page, where the Javascript is in an editable region so I can change the name of the JavaScript depending on the page.
For example I have a div class called 'external website'. When the user clicks the div class it will go to another website depending on what it was specified in the page's script file. On the other hand if I have another div class called 'pictures' I would like the website to call the JavaScript and take the visitor to a page where there are photos.
The reason why I want this is because Expression Web does not allow me to make div's editable in templates. So depending on the page the visitor arrives at it will have a div that will take him to that page, where the Javascript is in an editable region so I can change the name of the JavaScript depending on the page.