Make Whole DIV Tag Hyper Link - ASP.NET

Posted on 2009-04-17
Last Modified: 2012-05-06
Is it possible to make a whole of a div tag a hyper link in  If so what code can I insert?
Question by:kinton
    LVL 39

    Expert Comment

    what do you mean by making a div tag a hyperlink? A hyperlink is a <a href... /> tag, and a div tag is, well, a <div> tag. You can put an <a> tag around a div tag, and you can put an <a> tag inside a <div> tag:

       <a href="http://mylinkhere">the content of the div here</a>

    Open in new window

    LVL 10

    Accepted Solution


    <div onclick="document.location.href='myNewPage.html';">yada yada yada </div>

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now