Is it possible to call a javascript function from the URL?(是否可以从URL调用javascript函数?)
I am basically trying to leverage JS methods in a page I don't have access to the source.(我基本上是在无法访问源代码的页面中尝试利用JS方法。)
Something like: http://www.example.com/mypage.aspx?javascript:printHelloWorld()
(类似于: http://www.example.com/mypage.aspx?javascript:printHelloWorld()
: http://www.example.com/mypage.aspx?javascript:printHelloWorld()
javascript: http://www.example.com/mypage.aspx?javascript:printHelloWorld()
)
I know if you put javascript:alert("Hello World");
(我知道您是否放置javascript:alert("Hello World");
) into the address bar it will work.(进入地址栏即可。)
I suspect the answer to this is no but, just wondered if there was a way to do it.(我怀疑对此的答案是否定的,只是想知道是否有办法做到这一点。)
ask by DazManCat translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…