+ 1
How can we get alart box defult value from url ?
for example if my website/blog address is https://google.com/index.html if some one come with https://google.com/index.html+anytext how i get this ( anytext ) as my alart box value please help me .. i really thankful to you
2 Antworten
+ 4
using url object
var url = new URL(window.location.href);
alert( url.searchParams.get("param"));
0
http://www.sololearn.com/app/html/playground/WiR6Z6RSKmmu/ how can i use on this