This should work for you.
I just copied your code and made adjustments.
jQuery.noConflict();
jQuery("li.menu-item-47 a").on("click",function( event ) {
event.preventDefault();
if(confirm("YOU ARE LEAVING THE WEBSITE" + '\n' + "" + '\n' + "You are being connected to a secure bill payment system. Press Ok to continue.")) {
window.open( this ,'_blank'); //This will open the website in a new tab
}
});
Related Posts:
- Scroll to ID broken in main menu
- WordPress jQuery Post – Amending Variable Value Within Function Command
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Display posts by alphabetical order
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Mobile Menu and Mobile Sidebar missing
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Forms not displaying,becomming an fatal error
- WP Ajax DB issues
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- Ajax Call not Working in Plugin
- jQuery Ajax not loading page with ACF fields
- WordPress Dashboard add user password not working, etc
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- $wpdb not working wordpress plugin ajax call
- Mixed content error after adding SSL certificate
- update_post_meta is not working for me when I use e.preventDefault for update button
- WordPress site hamburger menu toggle not working
- Website always load twice on start
- Add custom WordPress admin page with pretty url via code
- main navigation menu disappear after adding jquery source file
- I need to show side menu in wordpress
- Hide button after form submit and save state to localstorage
- jQuery works instead of $
- Create survey that redirects to sidebar menu customized to answers
- checkout stripe with plugin contact form
- Circular Menu to show on pages
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress Thickbox Navigation Issue in Gallery
- myStickymenu hide on scroll up to certain Y values
- Dynamic input fields in WordPress Plugin
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Overwrite js code using WP_Footer
- Not displaying Woocommerce product page in lightbox
- Page Contents showing in Footer Area
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- How to disable users to view Other pages
- Storing Array of values into wordpress options
- Sub Categories in drop down menu
- Help with customising love it plugin (use within foreach)
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- Can’t find variable is_single in my jQuery plugin
- show-hide based on select option jquery wordpress
- How to install jquery dotdotdot plugin for WordPress?
- Specific plugin script not working on subdomain
- Admin page and admin menu. Permissions plugin
- Add HTML between feed items
- Javascript in plugin not working
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- WordPress menu and plugin installation problem
- Power Menus plugin destroys menu after adding new item
- Theme Load Error
- How to Add Jquery FullCalendar in wp plugin in admin
- Creating a comments voting system
- How to assign plugin to top level menu?
- Adding icons next to categories in wp_nav_menu
- WordPress ajax not working in registration
- WP Super Large Menu Problem
- How to build a navigation menu for long-form texts like this one
- Plugin program: JQuery not working in this plugin
- AJAX doesn’t pass variables to the php function in the plugin
- How to add jquery to my custom post type wp plugin
- What is the process for reimplementing a back up WordPress?
- Like/Dislike Bar not working when updating
- add_media_page function not creating submenu
- How can I pass value to function in add_menu_page?
- jquery-issue: cannot load the basic jquery
- Possible jquery / library conflict in plugin usage
- Ajax, jQuery and WordPress
- Automatically add child pages to menu
- Multiple Plugins Interacting with Menu
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- Drop down menu location select widget
- How to add plugin activity in the menus?
- How change menu for each user in plugin?
- Menu items’ links are not working properly and added images
- Add jQuery in dashboard when is already added in main plugin page
- jQuery loaded in wrong order for non-admin page views only
- how to change/remove/hide menu under installed plugins
- Category archive in menu
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- Why won’t the Comprehensive Google Map Plugin load?
- PHP and Jquery pass value from form. Update function on DataBase
- WordPress plugin ajax post parameter
- Redirect url in plugin to somewhere else?
- get_option include in my adsense
- How to activate/deactivate menu tab and keep the same id?
- how to call jQuery in admin as well as in homepage
- “The Events Calendar” Issues in WP 3.2
- Plugin use of ajax/jquery depending dropdown
- How do I output user_registered time in my correct timezone?