๐ฉ Atul Prajapati ๐ฎ๐ณ Posted on May 11, 2020 How to redirect to URL in new tab On window load event๐ #webdev #html #javascript #tutorial Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Hozefa Hozefa Hozefa Follow Engineering Manager prev @Meta | @Wealthfront | @PayPal Work Engineering Manager Joined Feb 15, 2019 • May 11 '20 • Edited on May 11 • Edited Dropdown menu Copy link Hide Making sure when cross linking to another site for security reasons its better to add rel="noopener" or rel="noreferrer" would be good. In this example, it can be like var windowFeatures = "rel='noopener noreferrer'"; window.open("https://atulprajapati.in", '_blank', windowFeatures) reference docs: developer.mozilla.org/en-US/docs/W... web.dev/external-anchors-use-rel-n... Collapse Expand ๐ฉ Atul Prajapati ๐ฎ๐ณ ๐ฉ Atul Prajapati ๐ฎ๐ณ ๐ฉ Atul Prajapati ๐ฎ๐ณ Follow HTML, CSS, Bootstrap, XML, ajax, react js, WordPress, Magento, Shopify, Photoshop, Camtasia, SEO & learning new skills every moment ๐จ๐ผโ๐ป | I believe in learning and sharing with others ๐ด Email atulkprajapati2000@gmail.com Location india Education Self Learnings Work Web Developer Joined May 6, 2019 • May 12 '20 Dropdown menu Copy link Hide Thanks ๐ brother, it's something new for me ๐ Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Making sure when cross linking to another site for security reasons its better to add
rel="noopener"
orrel="noreferrer"
would be good.In this example, it can be like
reference docs:
Thanks ๐ brother, it's something new for me ๐