+ 1

Using window.location.href to open file and webpage instead of function

Don't you know that you can use these method to open file and browser?

4th May 2019, 5:29 AM
Xander Lim
Xander Lim - avatar
2 odpowiedzi
+ 6
There are two ways to open new document or file. Method 1: window.location.href = "url or filename"; Method 2: window.open("url or filename" , "target to open(optional) ");
4th May 2019, 5:37 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 1
OK thank you!
4th May 2019, 5:39 AM
Xander Lim
Xander Lim - avatar