No need for jQuery. And it isn’t necessary to open a new window. Protocols which doesn’t return HTTP data to the browser (mailto:
, irc://
, magnet:
, ftp://
(<- it depends how it is implemented, normally the browser has an FTP client built in)) can be queried in the same window without losing the current content. In your case:
function redirect() { window.location.href = "mailto:[email protected]"; } <body onload="javascript: redirect();">
Or just directly
<body onload="javascript: window.location.href='mailto:[email protected]';">
Related Posts:
- mailto using javascript
- Mailto using Javascript?
- mailto using javascript
- Edit webpage with javascript trick – how to “unedit”?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- Is it possible to write data to file using only JavaScript?
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Is it possible to write data to file using only JavaScript?
- How to make JavaScript execute after page load?
- Set cookie and get cookie with JavaScript
- Which is better: or
- Onclick javascript to make browser go back to previous page?
- How to make JavaScript execute after page load?
- Why is my Javascript not working?
- How can I get the values of data attributes in JavaScript code?
- Javascript: getElementById vs getElementsById (both works on different pages)
- How to change css property using javascript
- javascript close current window
- Can I set subject/content of email using mailto:?
- I am trying to make a simple toggle button in javascript
- How to call a JavaScript function within an HTML body
- How to save user input into a variable in HTML and JavaScript
- Hiding a button in Javascript
- Show/hide ‘div’ using JavaScript
- How to make JavaScript execute after page load?
- Get HTML code using JavaScript with a URL
- Calculate percentage Javascript
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- JavaScript function onhover in
- Check if an element contains a class in JavaScript?
- Hide element by class in pure Javascript
- How to play a mp3 using Javascript? [duplicate]
- Function not defined javascript
- How to submit a form with JavaScript by clicking a link?
- How to call a REST web service API from JavaScript?
- Check a radio button with javascript
- Mailto on submit button
- AppendChild() is not a function javascript
- How can I change an element’s class with JavaScript?
- JavaScript: Get image dimensions
- Why write script type=”text/javascript” when the mime type is set by the server?
- How to select an input element by value using javascript?
- javascript window.location in new tab
- How to create a hidden in JavaScript?
- How do I programmatically set the value of a select box element using JavaScript?
- How can I capture the right-click event in JavaScript?
- How do I clear the content of a div using JavaScript?
- Android WebView err_unknown_url_scheme
- How to fix “Cannot read property ‘addEventListener’ of null” error [duplicate]
- How do I check whether a checkbox is checked in jQuery?
- How to add jQuery code into HTML Page
- Is “ ” a replacement of ” “?
- HTML Button : Navigate to Other Page – Different Approaches
- jquery SlideToggle effect in upward direction?
- FontAwesome icons are not showing, Why?
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- How to move text up using CSS when nothing is working
- How to style input and submit button with CSS?
- bootstrap navbar not working correctly
- How to center content in a Bootstrap column?
- onClick to get the ID of the clicked button
- HTML text input allow only numeric input
- How to change the buttons text using javascript
- HTML5 Validation Error: body start tag seen but an element of the same type was already open
- How do I use this JavaScript variable in HTML?
- How do I install a custom font on an HTML site
- How to close current tab in a browser window?
- How to align an input tag to the center without specifying the width?
- How can I embed video for discord directly from website?
- Fit background image to div
- How to display raw JSON data on a HTML page
- Table scroll with HTML and CSS
- Set cellpadding and cellspacing in CSS?
- How to make an HTML back link?
- How to fix getImageData() error The canvas has been tainted by cross-origin data?
- CSS content property: is it possible to insert HTML instead of Text?
- How to increase height of textarea using bootstrap rows and columns
- Making an image act like a button
- Get the size of the screen, current web page and browser window
- Is it possible to use css to shrink text to automatically fit the size of the div
- How to enable a disabled checkbox dynamically?
- jQuery find element by data attribute value
- How to use aria-expanded=”true” to change a css property
- WordPress footer menu floating with height of footer
- Keep HTML format when switching from Visual to HTML editor
- Will my WordPress site become vulnerable to Cross-Site Scripting (XSS) if I allow img tags in the comments area?
- How do I put a wordpress blog into my html site?
- New to CMS – WP functionality. overkill or just right?
- Building a slide down search box in wordpress
- Allow HTML in Settings API input field
- Widget Text Needs to be White [closed]
- Why can’t I edit HTML in WordPress even with the administrator role?
- Redirect WP 404 to html
- WordPress is replacing code with when I add to posts
- How to Know If I’ve Correctly Inserted Alt Attributes Into HTML
- How to hide unwanted HTML Comment like in website [duplicate]
- HTML code not working in WordPress
- WordPress adds ‘noindex’ tag to search results. Anything I can do about it?