0
How to open a PHP site using JavaScript without using window.open()?
I want to go to a PHP file using JavaScript but don't want to use window.open() as this function creates a new tab. And don't want to use jQuary as all of my code is written in vanilla JS so if u suggest jQuary related functions I have to change all of my functions So Pls guys help me😞
6 Réponses
+ 2
+ 1
using jQuery doesn't implies to not use vanilla JS... as jQuery is just a JS framework (a collection of tools written in JS).
however, the link provided by $hardul B should have answered your question... if not, feel free to ask for explanation without giving you links ^^
+ 1
$hardul B I didn't said the converse, and I even upvoted your answer... I just said that using jQuery doesn't require to rewritte vanilla JS code ;P
anyway, I agree with OP that it doesn't worst to use jQuery only for one thing (I even think that nowadays jQuery doesn't worst to be used at all...)
+ 1
$hardul B no problem: that would have clarifying my words for other too ;)
0
visph the question has answers which use Vanilla JS.. 🤔
0
visph oh my bad, i misunderstood your reply..