John Glabb
John Glabb

Reputation: 1621

How to make navbarText as an URL or clickable button

Seems it's just a static text. But I want to e.g. redirect to home page by clicking on navbarText label... Just adding "

enter image description here

Upvotes: 1

Views: 40

Answers (1)

Oliver Busse
Oliver Busse

Reputation: 3395

Workaround: Create a CSS style class:

.navbarText {
   cursor:pointer;
}

Assign the class to the text element

Create a onClientLoad Javascript which uses jQuery:

$(".navbarText").click(function(){
   // do your redirect stuff here
});

If you don't use jQuery then you can also do this with Dojo (for which I can't provide code because I don't use Dojo).

Upvotes: 1

Related Questions