I want to have a page run some PHP code when a user clicks on a link, without redirecting them. Is this possible with   <a href=""></a>   or with the javascript onclick event?...
I have an anchor with both HREF and ONCLICK attributes set. If clicked and Javascript is enabled, I want it to only execute ONCLICK and ignore HREF. Likewise, if Javascript is disabled or unsupported, I want it to follow the HREF URL and ignore ONC...
I am trying to write a GreaseMonkey script in which I want to find all of the links that are relative links.  It seemed to me that the way to do that would be to match the contents of href against /^https?:///.  But I find that when I access the an...
I have a question that will be found very often. The problem is that nowhere can be found an explicit solution.  I have two problems regarding anchors.  The main goal should be to get a nice clean url without any hashes in it while using anchors to...
I would like to know what is the difference between javascript:; and javascript:void(0); if I use them in href attribure for a anchor (link)  <a href="javascript:;" onclick="DoSomething();">Link</a>  <a href="javasc...
I want to insert this HTML element in some pages:  <a download="somedata.csv"    id="downloadLink"    href="data:application/csv;charset=utf-8,Col1%2CCol2%2CCol3%0AVal1%2CVal2%2CVal3%0AVal11%2CVal22%2CVal33%0AVal111%2CVal222%2C...
On my webpage I have an overflowed div (i.e. with the vertical scrollbar). Inside the div, I have anchors with ids. When I put one of these ids in the URL (mypage.html#id), I want the div, not the page, to scroll to that anchor.  How do I do that, pr...
I am using htmlunit to automatically go through a website. Here is the problem:  I want to click on an anchor in order to display a new page of a given table.  Here is the anchor:  <a href="javascript:__doPostBack('GridView1','Page...
I'm trying to make a href link to an anchor on another page (let's call it page 2 to make it easier), however on page 2, the anchor in question is contained within a div that is originally hidden when you first visit it (The div expands to re...
I have a simple Web Form with code like this:  //... //tons of text //... <a name="message" /> //... //tons of text //... <asp:Button ID="ButtonSend"                  runat="server"                  text="Send"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.