Try onclick function separately it can give you access to execute your function which can be used to open up a new window, for this purpose you first need to create a javascript function there you can define it and in your anchor tag you just need to call your function.
Example:
function newwin() { myWindow=window.open('lead_data.php?leadid=1','myWin','width=400,height=650') }
See how to call it from your anchor tag
<a onclick='newwin()'>Anchor</a>
Update
Visit this jsbin
http://jsbin.com/icUTUjI/1/edit
May be this will help you a lot to understand your problem.
Related Posts:
- How do I refresh a DIV content?
- WordPress Bootstrap Handburger Menu Wont Open
- How to properly use jsPDF library
- How to fix “Cannot read property ‘addEventListener’ of null” error [duplicate]
- How do I check whether a checkbox is checked in jQuery?
- jQuery document.createElement equivalent?
- How to make a word underline in Markdown
- Pure JavaScript equivalent of jQuery’s $.ready() – how to call a function when the page/DOM is ready for it [duplicate]
- How to pop an alert message box using PHP?
- How to play audio?
- How can I scroll to an element using jQuery?
- jQuery Get Selected Option From Dropdown
- Include another HTML file in a HTML file
- How to add jQuery code into HTML Page
- (change) vs (ngModelChange) in angular
- Bootstrap Dropdown menu is not working
- jquery SlideToggle effect in upward direction?
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Set timeout for ajax (jQuery)
- CSS height 100% percent not working
- Express Render not working return error: No default engine was specified and no extension was provided
- Jquery swipe left or right on mobile
- How to move an element into another element?
- Encode HTML entities in JavaScript
- How to move all HTML element children to another parent using JavaScript?
- Coin toss with JavaScript and HTML
- How to print HTML content on click of a button, but not the page?
- Play an audio file using jQuery when a button is clicked
- Bootstrap 4 Dropdown Menu not working?
- getBoundingClientRect is not a function
- document.getElementsByClassName().innerHTML always returns “undefined”
- Jquery button click() function is not working
- Make iframe automatically adjust height according to the contents without using scrollbar?
- Vue is not defined
- How do I modify the URL without reloading the page?
- Error: ENOENT: no such file or directory, stat ‘/public/main.html’ at Error (native)
- How do I check whether a checkbox is checked in jQuery?
- How to pass parameters using ui-sref in ui-router to controller
- How to write inside a DIV box with javascript
- What does ngf-select do and why is it needed for form validation?
- How to get the selected radio button’s value?
- SyntaxError: Unexpected token C in JSON at position 0 – Ionic 2 Http GET request
- Creating a div element in jQuery
- document.getElementById().value doesn’t set the value
- Force div to be topmost element of any and all webpages
- How to run a function when the page is loaded?
- Clearing my form inputs after submission
- Get class list for element with jQuery
- Reload an iframe with jQuery
- HTML/Javascript change div content
- How To Save Canvas As An Image With canvas.toDataURL()?
- Video auto play is not working in Safari and Chrome desktop browser
- How to implement “select all” check box in HTML?
- Only on Firefox “Loading failed for the script with source”
- How to embed a youtube playlist with a sidebar
- Why is jquery show() not working in example
- External JavaScript Not Running, does not write to document
- How can I use jQuery to run MySQL queries?
- Create a simple 10 second countdown
- Print a div content using Jquery
- Get the size of the screen, current web page and browser window
- How to enable a disabled checkbox dynamically?
- What’s the effect of adding ‘return false’ to a click event listener?
- Fully responsive HTML5 video
- When is a CDATA section necessary within a script tag?
- HTML anchor link – href and onclick both?
- How to create checkbox inside dropdown?
- How can I know which radio button is selected via jQuery?
- Positioning element at center of screen
- AngularJS POST Fails: Response for preflight has invalid HTTP status code 404
- “Uncaught TypeError: Illegal invocation” in Chrome
- How to use aria-expanded=”true” to change a css property
- How to wrap the content of the main tinyMCE editor with extra tags
- Slide in Panel WordPress Post
- How do developers add “Smooth Transitions” to their sites?
- Building a slide down search box in wordpress
- Populate dropdown with Child Pages based on Parent Page chosen
- Can I change an external script’s HTML?
- How to change redirection route to a php page for making it only accessible by logged-in members?
- AJAX not Working with php as supposed
- Add Codepen animation as Preloader to WordPress
- Why is JavaScript being added to header as application/oembed?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- Web cover page open when button clicked
- internal anchor links no longer working after upgrade
- Using Google Analytics in an enqueued JS file
- How do I disable cache for a certain page?
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Hide CSS class only in single post pages
- How to delay display of page elements until enqueued script has injected html
- Where to find the html for WordPress site? [closed]
- Why the images on mi javascript are not found?
- Load wp_editor on button click