Is there any predefined function or any way to open a website url using javascript?
as we do in php:
file_get_contents();
How can I open a link using javascript? Without using AJAX or JQuery or Flash
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no way for JS to load content Asynchronously with out using, to a degree, AJAX. After all, loading Asynchronously is more or less the entire point of AJAX.
Personally, I would say you should just accept using JQuery, whilst it is not the perfect solution to all life’s problems, it certainly does the job when it comes to AJAX requests like this.
EDIT
Though, that said, you may be simply wishing to simulate the use clicking a link… but that is a different question entirely.